fix: noconfirm auto-selects first AUR match

This commit is contained in:
2026-05-08 11:01:02 +01:00
parent d39cdc3fd9
commit 153cca6132
8056 changed files with 1983098 additions and 779 deletions
@@ -0,0 +1,15 @@
#include <iostream>
#include <cmMod.hpp>
#include "config.h"
#if CONFIG_OPT != 42
#error "Invalid value of CONFIG_OPT"
#endif
using namespace std;
int main(void) {
cmModClass obj("Hello");
cout << obj.getStr() << endl;
return 0;
}
@@ -0,0 +1,19 @@
project('cmakeSubTest_advanced', ['c', 'cpp'])
cm = import('cmake')
# Test the "normal" subproject call
sub_pro = cm.subproject('cmMod')
sub_dep = sub_pro.dependency('cmModLib')
sub_sta = sub_pro.dependency('cmModLibStatic')
# Build some files
exe1 = executable('main1', ['main.cpp'], dependencies: [sub_dep])
exe2 = executable('main2', ['main.cpp'], dependencies: [sub_sta])
test('test1', exe1)
test('test2', exe2)
# Test if we can also extract executables
assert(sub_pro.target_type('meson-testEXE') == 'executable', 'The type must be executable for obvious reasons')
test('test3', sub_pro.target('meson-testEXE'))
test('test4', sub_pro.target('benchmark'))
@@ -0,0 +1,26 @@
cmake_minimum_required(VERSION 3.5)
project(cmMod)
set(CMAKE_CXX_STANDARD 14)
include_directories(${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/lib)
set(CONFIG_OPT 42)
configure_file("config.h.in" "${CMAKE_CURRENT_BINARY_DIR}/config.h" @ONLY)
add_library(cmModLib SHARED lib/cmMod.cpp)
add_library(cmModLibStatic STATIC lib/cmMod.cpp)
include(GenerateExportHeader)
generate_export_header(cmModLib)
set_target_properties(cmModLib PROPERTIES VERSION 1.0.1)
add_executable(meson-testEXE main.cpp)
add_executable(benchmark main.cpp)
target_link_libraries(meson-testEXE cmModLib)
target_link_libraries(benchmark cmModLib)
target_compile_definitions(cmModLibStatic PUBLIC CMMODLIB_STATIC_DEFINE)
install(TARGETS meson-testEXE benchmark LIBRARY DESTINATION lib RUNTIME DESTINATION bin)
@@ -0,0 +1,3 @@
#pragma once
#define CONFIG_OPT @CONFIG_OPT@
@@ -0,0 +1,16 @@
#include "cmMod.hpp"
#include "config.h"
#if CONFIG_OPT != 42
#error "Invalid value of CONFIG_OPT"
#endif
using namespace std;
cmModClass::cmModClass(string foo) {
str = foo + " World";
}
string cmModClass::getStr() const {
return str;
}
@@ -0,0 +1,13 @@
#pragma once
#include <string>
#include "cmmodlib_export.h"
class CMMODLIB_EXPORT cmModClass {
private:
std::string str;
public:
cmModClass(std::string foo);
std::string getStr() const;
};
@@ -0,0 +1,10 @@
#include <iostream>
#include "lib/cmMod.hpp"
using namespace std;
int main(void) {
cmModClass obj("Hello (LIB TEST)");
cout << obj.getStr() << endl;
return 0;
}
@@ -0,0 +1,8 @@
{
"installed": [
{"type": "pdb", "file": "usr/bin/cm_meson_testEXE"},
{"type": "exe", "file": "usr/bin/cm_meson_testEXE"},
{"type": "pdb", "file": "usr/bin/cm_benchmark"},
{"type": "exe", "file": "usr/bin/cm_benchmark"}
]
}