fix: noconfirm auto-selects first AUR match
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
#include <stdlib.h>
|
||||
#include <iostream>
|
||||
#include "libA.hpp"
|
||||
#include "libB.hpp"
|
||||
|
||||
using namespace std;
|
||||
|
||||
int main(void) {
|
||||
cout << getLibStr() << " -- " << getZlibVers() << endl;
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
project('cmake_object_lib_test', 'cpp')
|
||||
|
||||
cm = import('cmake')
|
||||
|
||||
sub_pro = cm.subproject('cmObjLib')
|
||||
sub_sha = sub_pro.dependency('lib_sha')
|
||||
sub_sta = sub_pro.dependency('lib_sta')
|
||||
|
||||
exe_sha = executable('shared', ['main.cpp'], dependencies: [sub_sha])
|
||||
exe_sta = executable('static', ['main.cpp'], dependencies: [sub_sta])
|
||||
|
||||
test('test1', exe_sha)
|
||||
test('test1', exe_sta)
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
cmake_minimum_required(VERSION 3.7)
|
||||
project(cmObject CXX)
|
||||
|
||||
add_library(lib_obj OBJECT libA.cpp libB.cpp)
|
||||
add_library(lib_sha SHARED $<TARGET_OBJECTS:lib_obj>)
|
||||
add_library(lib_sta STATIC $<TARGET_OBJECTS:lib_obj>)
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
#include "libA.hpp"
|
||||
|
||||
std::string getLibStr(void) {
|
||||
return "Hello World";
|
||||
}
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
|
||||
#if defined _WIN32 || defined __CYGWIN__
|
||||
#define DLL_PUBLIC __declspec(dllexport)
|
||||
#else
|
||||
#if defined __GNUC__
|
||||
#define DLL_PUBLIC __attribute__ ((visibility("default")))
|
||||
#else
|
||||
#pragma message ("Compiler does not support symbol visibility.")
|
||||
#define DLL_PUBLIC
|
||||
#endif
|
||||
#endif
|
||||
|
||||
std::string DLL_PUBLIC getLibStr();
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
#include "libB.hpp"
|
||||
|
||||
std::string getZlibVers(void) {
|
||||
return "STUB";
|
||||
}
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
|
||||
#if defined _WIN32 || defined __CYGWIN__
|
||||
#define DLL_PUBLIC __declspec(dllexport)
|
||||
#else
|
||||
#if defined __GNUC__
|
||||
#define DLL_PUBLIC __attribute__ ((visibility("default")))
|
||||
#else
|
||||
#pragma message ("Compiler does not support symbol visibility.")
|
||||
#define DLL_PUBLIC
|
||||
#endif
|
||||
#endif
|
||||
|
||||
std::string DLL_PUBLIC getZlibVers();
|
||||
Reference in New Issue
Block a user