11cmake_minimum_required (VERSION 3.15 )
2- <<<<<<< HEAD
32project (ProXPL VERSION 1.0.0 LANGUAGES C CXX )
4- =======
5- project (ProXPL)
6- >>>>>>> fix-ci-build
73
84# Enable C and C++
95enable_language (C CXX )
1915endif ()
2016
2117# --- LLVM Configuration ---
22- <<<<<<< HEAD
2318set (CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR} /cmake/modules" )
2419
2520# --- LLVM Configuration ---
@@ -49,22 +44,14 @@ else()
4944 message (WARNING "LibFFI not found. FFI features will be disabled." )
5045endif ()
5146
52- =======
53- find_package (LLVM CONFIG )
54-
55- >>>>>>> fix-ci-build
5647if (LLVM_FOUND)
5748 message (STATUS "Found LLVM ${LLVM_PACKAGE_VERSION} " )
5849 include_directories (SYSTEM ${LLVM_INCLUDE_DIRS} )
5950 add_definitions (${LLVM_DEFINITIONS} )
6051 link_directories (${LLVM_LIBRARY_DIRS} )
6152
6253 # Map generic components to specific libs
63- <<<<<<< HEAD
6454 llvm_map_components_to_libnames (llvm_libs core support executionengine native ipo analysis transformutils bitwriter )
65- =======
66- llvm_map_components_to_libnames (llvm_libs core support executionengine native ipo )
67- >>>>>>> fix-ci-build
6855else ()
6956 message (WARNING "LLVM not found. Building without LLVM backend." )
7057 set (llvm_libs "" )
@@ -87,17 +74,13 @@ list(FILTER LIB_SOURCES EXCLUDE REGEX ".*main\\.c$")
8774list (FILTER LIB_SOURCES EXCLUDE REGEX ".*vm_v2\\ .c$" )
8875list (FILTER LIB_SOURCES EXCLUDE REGEX ".*vm_dispatch\\ .c$" )
8976list (FILTER LIB_SOURCES EXCLUDE REGEX ".*instr_handlers_template\\ .c$" )
90- <<<<<<< HEAD
9177# Exclude prototype VM register which has its own main
9278list (FILTER LIB_SOURCES EXCLUDE REGEX ".*vm_register\\ .c$" )
93- =======
94- >>>>>>> fix-ci-build
9579
9680if (NOT LLVM_FOUND)
9781 list (FILTER LIB_SOURCES EXCLUDE REGEX ".*backend_llvm\\ .cpp$" )
9882endif ()
9983
100- <<<<<<< HEAD
10184
10285# --- Build Configuration ---
10386# --- Build Configuration ---
@@ -136,36 +119,17 @@ endif()
136119if (LIBFFI_FOUND)
137120 target_link_libraries (proxpl PRIVATE ${LIBFFI_LIBRARIES} )
138121endif ()
139- =======
140- # --- Core Library ---
141- add_library (proxpl_lib SHARED ${LIB_SOURCES} )
142- if (LLVM_FOUND)
143- target_link_libraries (proxpl_lib PRIVATE ${llvm_libs} )
144- endif ()
145-
146- # --- Main Executable ---
147- add_executable (proxpl src/main.c )
148- target_link_libraries (proxpl PRIVATE proxpl_lib ${llvm_libs} )
149- >>>>>>> fix-ci-build
150122
151123if (UNIX )
152124 if (APPLE )
153125 target_link_libraries (proxpl PRIVATE pthread dl z )
154- <<<<<<< HEAD
155- else ()
156- target_link_libraries (proxpl PRIVATE pthread dl z tinfo )
157- =======
158- target_link_libraries (proxpl_lib PRIVATE pthread dl z )
159126 else ()
160127 target_link_libraries (proxpl PRIVATE pthread dl z tinfo )
161- target_link_libraries (proxpl_lib PRIVATE pthread dl z tinfo )
162- >>>>>>> fix-ci-build
163128 endif ()
164129endif ()
165130
166131# --- IR Test Executable ---
167132add_executable (ir_gen_test tools/ir_gen_test.c )
168- <<<<<<< HEAD
169133if (PROX_STATIC_BUILD)
170134 # Link directly to sources for static build since proxpl_lib doesn't exist
171135 target_sources (ir_gen_test PRIVATE ${LIB_SOURCES} )
@@ -184,14 +148,10 @@ else()
184148 target_link_libraries (ir_gen_test PRIVATE ${LIBFFI_LIBRARIES} )
185149 endif ()
186150endif ()
187- =======
188- target_link_libraries (ir_gen_test PRIVATE proxpl_lib )
189- >>>>>>> fix-ci-build
190151
191152# --- LLVM Gen Test Executable ---
192153add_executable (llvm_gen_test tools/llvm_gen_test.c )
193154
194- <<<<<<< HEAD
195155if (PROX_STATIC_BUILD)
196156 target_sources (llvm_gen_test PRIVATE ${LIB_SOURCES} )
197157 if (LLVM_FOUND)
@@ -206,19 +166,13 @@ else()
206166 target_link_libraries (llvm_gen_test PRIVATE ${LIBFFI_LIBRARIES} )
207167 endif ()
208168endif ()
209- =======
210- target_link_libraries (llvm_gen_test PRIVATE proxpl_lib ${llvm_libs} )
211- >>>>>>> fix-ci-build
212169
213170# --- PRM Executable ---
214171add_executable (prm
215172 tools/prm_main.c
216173 src/prm/manifest.c
217174 src/prm/builder.c
218- <<<<<<< HEAD
219175 src/prm/commands/cmd_core.c
220- =======
221- >>>>>>> fix-ci-build
222176)
223177# PRM doesn't strictly need proxpl_lib unless it uses core types?
224178# For now, it's standalone, but let's link it if needed later.
0 commit comments