diff options
Diffstat (limited to 'vcpkg/scripts/test_ports/vcpkg-ci-unicorn')
4 files changed, 43 insertions, 0 deletions
diff --git a/vcpkg/scripts/test_ports/vcpkg-ci-unicorn/portfile.cmake b/vcpkg/scripts/test_ports/vcpkg-ci-unicorn/portfile.cmake new file mode 100644 index 0000000..6f0a127 --- /dev/null +++ b/vcpkg/scripts/test_ports/vcpkg-ci-unicorn/portfile.cmake @@ -0,0 +1,10 @@ +SET(VCPKG_POLICY_EMPTY_PACKAGE enabled)
+
+vcpkg_find_acquire_program(PKGCONFIG)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${CURRENT_PORT_DIR}/project"
+ OPTIONS
+ "-DPKG_CONFIG_EXECUTABLE=${PKGCONFIG}"
+)
+vcpkg_cmake_build()
diff --git a/vcpkg/scripts/test_ports/vcpkg-ci-unicorn/project/CMakeLists.txt b/vcpkg/scripts/test_ports/vcpkg-ci-unicorn/project/CMakeLists.txt new file mode 100644 index 0000000..43652ce --- /dev/null +++ b/vcpkg/scripts/test_ports/vcpkg-ci-unicorn/project/CMakeLists.txt @@ -0,0 +1,12 @@ +cmake_minimum_required(VERSION 3.5)
+
+project(vcpkg-ci-unicorn C)
+
+set(CMAKE_C_STANDARD 11)
+
+find_package(PkgConfig REQUIRED)
+pkg_check_modules(unicorn REQUIRED IMPORTED_TARGET unicorn)
+
+add_executable(main main.c)
+
+target_link_libraries(main PRIVATE PkgConfig::unicorn)
diff --git a/vcpkg/scripts/test_ports/vcpkg-ci-unicorn/project/main.c b/vcpkg/scripts/test_ports/vcpkg-ci-unicorn/project/main.c new file mode 100644 index 0000000..9f7b3ed --- /dev/null +++ b/vcpkg/scripts/test_ports/vcpkg-ci-unicorn/project/main.c @@ -0,0 +1,8 @@ +#include <unicorn/unicorn.h>
+
+int main()
+{
+ uc_engine* uc;
+ uc_open(UC_ARCH_X86, UC_MODE_32, &uc);
+ return 0;
+}
diff --git a/vcpkg/scripts/test_ports/vcpkg-ci-unicorn/vcpkg.json b/vcpkg/scripts/test_ports/vcpkg-ci-unicorn/vcpkg.json new file mode 100644 index 0000000..71ef60d --- /dev/null +++ b/vcpkg/scripts/test_ports/vcpkg-ci-unicorn/vcpkg.json @@ -0,0 +1,13 @@ +{
+ "name": "vcpkg-ci-unicorn",
+ "version-string": "ci",
+ "description": "Testing packages which provide unicorn",
+ "license": null,
+ "dependencies": [
+ "unicorn",
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ }
+ ]
+}
\ No newline at end of file |