blob: 65ad500df4d03b78e8913a374d599b12d6120432 [file] [log] [blame]
Courtney Goeltzenleuchtere06e72d2014-08-01 12:44:23 -06001# Create the i965 XGL DRI library
Cody Northrop0eb5eea2014-09-19 15:11:52 -06002
3# Mesa required defines
Cody Northrope8455b12014-09-17 16:18:12 -06004add_definitions(-D_GNU_SOURCE -DHAVE_PTHREAD)
Cody Northrop0eb5eea2014-09-19 15:11:52 -06005# LLVM required defines
6add_definitions(-D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS)
Cody Northrope8455b12014-09-17 16:18:12 -06007
Cody Northrop065538b2014-12-05 14:20:04 -07008# DEBUG and NDEBUG flags are important for proper mesa behavior
9set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -DDEBUG")
10set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -DNDEBUG")
11set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -DDEBUG")
12set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -DNDEBUG")
13
Cody Northrope8455b12014-09-17 16:18:12 -060014# LunarG TODO: Get the llvm-config flags hooked up correctly and remove extra definitions from above
15
Steve K14e09812014-09-19 09:45:36 -060016execute_process(COMMAND ${LUNARGLASS_PREFIX}/Core/LLVM/llvm-3.4/build/install/usr/local/bin/llvm-config --libs engine bitwriter
17 OUTPUT_VARIABLE LLVM_LIBS_ALL_1
18 RESULT_VARIABLE LLVM_LIBS_RESULT)
19
Cody Northrop0eb5eea2014-09-19 15:11:52 -060020string(REPLACE "\n" "" LLVM_LIBS_ALL ${LLVM_LIBS_ALL_1})
21message(STATUS "llvm-config lib results")
22message(STATUS ${LLVM_LIBS_ALL})
23
Steve K66d40802014-09-19 09:59:26 -060024if(NOT "${LLVM_LIBS_RESULT}" EQUAL "0")
25 message(FATAL_ERROR "llvm-config failed: " ${LLVM_LIBS_RESULT})
Steve K14e09812014-09-19 09:45:36 -060026endif()
27
Courtney Goeltzenleuchter62b2e852014-10-03 15:34:53 -060028# Expect libraries to be in either the build (release build) or dbuild (debug) directories
29if(EXISTS ${GLSLANG_PREFIX}/build/install/lib)
30 set(GLSLANG_BUILD ${GLSLANG_PREFIX}/build)
31elseif(EXISTS ${GLSLANG_PREFIX}/dbuild/install/lib)
32 set(GLSLANG_BUILD ${GLSLANG_PREFIX}/dbuild)
33else()
34 message(FATAL_ERROR "Necessary glslang libraries cannot be found: " ${GLSLANG_PREFIX})
35endif()
36
37if(EXISTS ${LUNARGLASS_PREFIX}/build/install/lib)
38 set(LUNARGLASS_BUILD ${LUNARGLASS_PREFIX}/build)
39elseif(EXISTS ${LUNARGLASS_PREFIX}/dbuild/install/lib)
40 set(LUNARGLASS_BUILD ${LUNARGLASS_PREFIX}/dbuild)
41else()
42 message(FATAL_ERROR "Necessary LunarGLASS libraries cannot be found: " ${LUNARGLASS_PREFIX})
43endif()
Cody Northrope8455b12014-09-17 16:18:12 -060044
Cody Northrop0eb5eea2014-09-19 15:11:52 -060045execute_process(COMMAND ${LUNARGLASS_PREFIX}/Core/LLVM/llvm-3.4/build/install/usr/local/bin/llvm-config --cxxflags
46 OUTPUT_VARIABLE LLVM_CXX_CONFIG_ALL_1
Steve K66d40802014-09-19 09:59:26 -060047 RESULT_VARIABLE LLVM_CXX_CONFIG_RESULT)
48
Cody Northrop0eb5eea2014-09-19 15:11:52 -060049string(REPLACE "\n" "" LLVM_CXX_CONFIG_ALL ${LLVM_CXX_CONFIG_ALL_1})
50string(REPLACE "-Woverloaded-virtual" "" LLVM_CXX_CONFIG_1 ${LLVM_CXX_CONFIG_ALL})
51string(REPLACE "-fvisibility-inlines-hidden" "" LLVM_CXX_CONFIG ${LLVM_CXX_CONFIG_1})
52message(STATUS "llvm-config cxxflags results")
53message(STATUS ${LLVM_CXX_CONFIG})
54
Steve K66d40802014-09-19 09:59:26 -060055# if(NOT "${LLVM_CXX_CONFIG_RESULT}" EQUAL "0")
56# message(FATAL_ERROR "llvm-config failed: " ${LLVM_CXX_CONFIG_RESULT})
57# endif()
58
Steve K66d40802014-09-19 09:59:26 -060059
60set_target_properties(icd
61 PROPERTIES
62 COMPILE_FLAGS "${LLVM_CXX_CONFIG}")
63
Cody Northrope8455b12014-09-17 16:18:12 -060064SET(COMPILER_LINK_DIRS
Courtney Goeltzenleuchter62b2e852014-10-03 15:34:53 -060065 ${GLSLANG_BUILD}/install/lib
Cody Northrope8455b12014-09-17 16:18:12 -060066 ${LUNARGLASS_PREFIX}/Core/LLVM/llvm-3.4/build/install/usr/local/lib
Steve K42652ba2014-10-07 10:44:41 -060067 ${LUNARGLASS_PREFIX}/build/Core
68 ${LUNARGLASS_PREFIX}/build/Frontends/glslang
69 ${LUNARGLASS_PREFIX}/build/Frontends/Bil
70 ${LUNARGLASS_PREFIX}/build/Core/Passes/Transforms
71 ${LUNARGLASS_PREFIX}/build/Core/Passes/Immutable
72 ${LUNARGLASS_PREFIX}/build/Core/Passes/Analysis
73 ${LUNARGLASS_PREFIX}/build/Core/Passes/Util
Cody Northrope8455b12014-09-17 16:18:12 -060074)
Courtney Goeltzenleuchtere06e72d2014-08-01 12:44:23 -060075
Chia-I Wuddbc8e22014-09-18 17:05:09 +080076pkg_check_modules(DRM REQUIRED libdrm libdrm_intel)
77
Cody Northrope8455b12014-09-17 16:18:12 -060078link_directories (
79 ${ICD_LIBRARY_DIRS}
80 ${DRM_LIBRARY_DIRS}
81 ${COMPILER_LINK_DIRS}
Chia-I Wuddbc8e22014-09-18 17:05:09 +080082)
83
Cody Northrope8455b12014-09-17 16:18:12 -060084SET(COMPILER_LIBS
85 glslangFrontend
Steve K42652ba2014-10-07 10:44:41 -060086 BilFrontend
Cody Northrope8455b12014-09-17 16:18:12 -060087 core
88 LLVMipo
89 glslang
Steve K42652ba2014-10-07 10:44:41 -060090 BIL
Cody Northrope8455b12014-09-17 16:18:12 -060091 OGLCompiler
92 ${LLVM_LIBS_ALL}
Courtney Goeltzenleuchtere06e72d2014-08-01 12:44:23 -060093)
94
95link_libraries (
Cody Northrope8455b12014-09-17 16:18:12 -060096 ${ICD_LIBRARIES}
97 ${DRM_LIBRARIES}
98 ${COMPILER_LIBS}
99 m
Steve Kda224042014-09-19 08:46:17 -0600100 pthread
101 dl
Cody Northrope8455b12014-09-17 16:18:12 -0600102)
103
104SET(COMPILER_INCLUDE_DIRS
105 ${GLSLANG_PREFIX}
106 ${LUNARGLASS_PREFIX}/Core/LLVM/llvm-3.4/build/install/usr/local/include
107 ${LUNARGLASS_PREFIX}
Cody Northrop0eb5eea2014-09-19 15:11:52 -0600108 ${CMAKE_CURRENT_SOURCE_DIR}
Cody Northropbc851432014-09-23 10:06:32 -0600109 compiler/shader
Cody Northrope8455b12014-09-17 16:18:12 -0600110 compiler/mesa-utils/include
Cody Northropbc851432014-09-23 10:06:32 -0600111 compiler/mesa-utils/src
Cody Northrope8455b12014-09-17 16:18:12 -0600112 compiler/mesa-utils/src/glsl
113 compiler/mesa-utils/src/mesa
Cody Northropbc851432014-09-23 10:06:32 -0600114 compiler/mesa-utils/src/mesa/program
Cody Northrope8455b12014-09-17 16:18:12 -0600115 compiler/mesa-utils/src/mapi
116)
117
118include_directories (
119 ${ICD_INCLUDE_DIRS}
120 ${DRM_INCLUDE_DIRS}
121 ${COMPILER_INCLUDE_DIRS}
122)
123
124
125SET(COMPILER_SOURCES
126 compiler/shader/ast_array_index.cpp
127 compiler/shader/ast_expr.cpp
128 compiler/shader/ast_function.cpp
129 compiler/shader/ast_to_hir.cpp
130 compiler/shader/ast_type.cpp
131 compiler/shader/builtin_functions.cpp
132 compiler/shader/builtin_types.cpp
133 compiler/shader/builtin_variables.cpp
134 compiler/shader/ir.cpp
135 compiler/shader/ir_basic_block.cpp
136 compiler/shader/ir_builder.cpp
137 compiler/shader/ir_clone.cpp
138 compiler/shader/ir_constant_expression.cpp
139 compiler/shader/ir_deserializer.cpp
140 compiler/shader/ir_equals.cpp
141 compiler/shader/ir_expression_flattening.cpp
142 compiler/shader/ir_function_can_inline.cpp
143 compiler/shader/ir_function.cpp
144 compiler/shader/ir_function_detect_recursion.cpp
145 compiler/shader/ir_hierarchical_visitor.cpp
146 compiler/shader/ir_hv_accept.cpp
147 compiler/shader/ir_import_prototypes.cpp
148 compiler/shader/ir_print_visitor.cpp
149 compiler/shader/ir_reader.cpp
150 compiler/shader/ir_rvalue_visitor.cpp
151 compiler/shader/ir_serialize.cpp
152 compiler/shader/ir_set_program_inouts.cpp
153 compiler/shader/ir_validate.cpp
154 compiler/shader/ir_variable_refcount.cpp
155 compiler/shader/link_atomics.cpp
156 compiler/shader/linker.cpp
157 compiler/shader/link_functions.cpp
158 compiler/shader/link_interface_blocks.cpp
159 compiler/shader/link_uniform_block_active_visitor.cpp
160 compiler/shader/link_uniform_blocks.cpp
161 compiler/shader/link_uniform_initializers.cpp
162 compiler/shader/link_uniforms.cpp
163 compiler/shader/link_varyings.cpp
164 compiler/shader/loop_analysis.cpp
165 compiler/shader/loop_controls.cpp
166 compiler/shader/loop_unroll.cpp
167 compiler/shader/lower_clip_distance.cpp
168 compiler/shader/lower_discard.cpp
169 compiler/shader/lower_discard_flow.cpp
170 compiler/shader/lower_if_to_cond_assign.cpp
171 compiler/shader/lower_instructions.cpp
172 compiler/shader/lower_jumps.cpp
173 compiler/shader/lower_mat_op_to_vec.cpp
174 compiler/shader/lower_named_interface_blocks.cpp
175 compiler/shader/lower_noise.cpp
176 compiler/shader/lower_offset_array.cpp
177 compiler/shader/lower_output_reads.cpp
178 compiler/shader/lower_packed_varyings.cpp
179 compiler/shader/lower_packing_builtins.cpp
180 compiler/shader/lower_texture_projection.cpp
181 compiler/shader/lower_ubo_reference.cpp
182 compiler/shader/lower_variable_index_to_cond_assign.cpp
183 compiler/shader/lower_vec_index_to_cond_assign.cpp
184 compiler/shader/lower_vec_index_to_swizzle.cpp
185 compiler/shader/lower_vector.cpp
186 compiler/shader/lower_vector_insert.cpp
187 compiler/shader/opt_algebraic.cpp
188 compiler/shader/opt_array_splitting.cpp
189 compiler/shader/opt_constant_folding.cpp
190 compiler/shader/opt_constant_propagation.cpp
191 compiler/shader/opt_constant_variable.cpp
192 compiler/shader/opt_copy_propagation.cpp
193 compiler/shader/opt_copy_propagation_elements.cpp
194 compiler/shader/opt_cse.cpp
195 compiler/shader/opt_dead_builtin_varyings.cpp
196 compiler/shader/opt_dead_code.cpp
197 compiler/shader/opt_dead_code_local.cpp
198 compiler/shader/opt_dead_functions.cpp
199 compiler/shader/opt_flatten_nested_if_blocks.cpp
200 compiler/shader/opt_flip_matrices.cpp
201 compiler/shader/opt_function_inlining.cpp
202 compiler/shader/opt_if_simplification.cpp
203 compiler/shader/opt_noop_swizzle.cpp
204 compiler/shader/opt_redundant_jumps.cpp
205 compiler/shader/opt_structure_splitting.cpp
206 compiler/shader/opt_swizzle_swizzle.cpp
207 compiler/shader/opt_tree_grafting.cpp
208 compiler/shader/opt_vectorize.cpp
209 compiler/shader/s_expression.cpp
210# compiler/shader/shader_deserialize.cpp
211# compiler/shader/shader_serialize.cpp
212# compiler/shader/standalone_scaffolding.cpp
213 compiler/shader/strtod.cpp
214
215 compiler/mesa-utils/src/glsl/ralloc.c
216 compiler/mesa-utils/src/mesa/program/program.c
217# compiler/mesa-utils/src/mesa/program/prog_execute.c
218 # compiler/mesa-utils/src/mesa/program/prog_noise.c
Steve Kda224042014-09-19 08:46:17 -0600219 compiler/mesa-utils/src/mesa/program/prog_statevars.c
Cody Northrope8455b12014-09-17 16:18:12 -0600220 # compiler/mesa-utils/src/mesa/program/prog_opt_constant_fold.c
221 compiler/mesa-utils/src/mesa/program/symbol_table.c
Steve Kda224042014-09-19 08:46:17 -0600222# compiler/mesa-utils/src/mesa/program/prog_cache.c
Cody Northrope8455b12014-09-17 16:18:12 -0600223 compiler/mesa-utils/src/mesa/program/prog_instruction.c
224 # compiler/mesa-utils/src/mesa/program/prog_optimize.c
225 # compiler/mesa-utils/src/mesa/program/arbprogparse.c
226 compiler/mesa-utils/src/mesa/program/prog_hash_table.c
227 compiler/mesa-utils/src/mesa/program/prog_parameter.c
228 # compiler/mesa-utils/src/mesa/program/prog_diskcache.c
229 # compiler/mesa-utils/src/mesa/program/program_parse.tab.c
230 # compiler/mesa-utils/src/mesa/program/programopt.c
231 # compiler/mesa-utils/src/mesa/program/prog_print.c
232 # compiler/mesa-utils/src/mesa/program/program_parse_extra.c
233 # compiler/mesa-utils/src/mesa/program/prog_parameter_layout.c
Cody Northropbc851432014-09-23 10:06:32 -0600234 compiler/mesa-utils/src/mesa/program/register_allocate.c
Cody Northrope8455b12014-09-17 16:18:12 -0600235 # compiler/mesa-utils/src/mesa/math/m_matrix.c
236 # compiler/mesa-utils/src/mesa/main/enums.c
237 # compiler/mesa-utils/src/mesa/main/imports.c
238 compiler/mesa-utils/src/mesa/main/hash.c
239 compiler/mesa-utils/src/mesa/main/hash_table.c
240 # compiler/mesa-utils/src/mesa/main/errors.c
241 # compiler/mesa-utils/src/mesa/main/formats.c
242
243 compiler/mesa-utils/src/mesa/main/errors.c
244 # compiler/mesa-utils/src/mesa/main/context.c
245 compiler/mesa-utils/src/mesa/main/enums.c
246 compiler/mesa-utils/src/mesa/main/imports.c
247 compiler/mesa-utils/src/mesa/main/version.c
Cody Northropfb3b8982014-10-21 09:47:26 -0600248 compiler/mesa-utils/src/mesa/main/uniforms.c
Cody Northrope8455b12014-09-17 16:18:12 -0600249
Cody Northrop0eb5eea2014-09-19 15:11:52 -0600250 #compiler/mesa-utils/src/mesa/main/shaderobj.c
251
Cody Northropbce1b882014-10-20 16:42:23 -0600252 compiler/mesa-utils/src/mesa/program/sampler.cpp
253
Cody Northrope8455b12014-09-17 16:18:12 -0600254 compiler/shader/glsl_glass_manager.cpp
255 compiler/shader/glsl_glass_backend_translator.cpp
256 compiler/shader/glsl_glass_backend.cpp
257
258 compiler/shader/glsl_parser_extras.cpp
259 compiler/shader/ossource.cpp
260 compiler/shader/standalone_scaffolding.cpp
261 compiler/shader/glsl_types.cpp
262 compiler/shader/glsl_symbol_table.cpp
263 compiler/shader/hir_field_selection.cpp
264
Cody Northrop0eb5eea2014-09-19 15:11:52 -0600265 compiler/shader/compiler_interface.cpp
266
Cody Northropbc851432014-09-23 10:06:32 -0600267 # File required for backend compiler
268 compiler/pipeline/pipeline_compiler_interface.cpp
Chia-I Wu7115a7a2014-10-22 13:48:59 +0800269 compiler/pipeline/pipeline_compiler_interface_meta.cpp
Chia-I Wue25293b2014-10-22 13:23:31 +0800270 compiler/pipeline/brw_blorp_blit_eu.cpp
Cody Northropbc851432014-09-23 10:06:32 -0600271 compiler/pipeline/brw_shader.cpp
272 compiler/pipeline/brw_fs.cpp
273 compiler/pipeline/brw_fs_visitor.cpp
274 compiler/pipeline/brw_fs_live_variables.cpp
275 compiler/pipeline/brw_cfg.cpp
276 compiler/pipeline/brw_fs_cse.cpp
277 compiler/pipeline/brw_fs_copy_propagation.cpp
278 compiler/pipeline/brw_fs_peephole_predicated_break.cpp
279 compiler/pipeline/brw_fs_dead_code_eliminate.cpp
280 compiler/pipeline/brw_fs_sel_peephole.cpp
281 compiler/pipeline/brw_dead_control_flow.cpp
282 compiler/pipeline/brw_fs_saturate_propagation.cpp
283 compiler/pipeline/brw_fs_register_coalesce.cpp
284 compiler/pipeline/brw_schedule_instructions.cpp
285 compiler/pipeline/brw_fs_reg_allocate.cpp
286 compiler/pipeline/brw_fs_generator.cpp
287 compiler/pipeline/brw_lower_texture_gradients.cpp
288 compiler/pipeline/brw_cubemap_normalize.cpp
289 compiler/pipeline/brw_lower_unnormalized_offset.cpp
290 compiler/pipeline/brw_fs_channel_expressions.cpp
291 compiler/pipeline/brw_fs_vector_splitting.cpp
Cody Northrope8455b12014-09-17 16:18:12 -0600292
Cody Northropbc851432014-09-23 10:06:32 -0600293 compiler/pipeline/brw_disasm.c
294 compiler/pipeline/brw_device_info.c
295 compiler/pipeline/brw_eu.c
296 compiler/pipeline/brw_program.c
297 compiler/pipeline/brw_wm.c
298 compiler/pipeline/brw_eu_emit.c
299 compiler/pipeline/brw_eu_compact.c
300 compiler/pipeline/intel_debug.c
Cody Northrop83e2b032014-09-25 17:00:31 -0600301
302 compiler/pipeline/brw_vs.c
303 compiler/pipeline/brw_vec4.cpp
304 compiler/pipeline/brw_vec4_visitor.cpp
305 compiler/pipeline/brw_vec4_vs_visitor.cpp
306 compiler/pipeline/brw_vec4_live_variables.cpp
307 compiler/pipeline/brw_vec4_copy_propagation.cpp
308 compiler/pipeline/brw_vec4_reg_allocate.cpp
309 compiler/pipeline/brw_vec4_generator.cpp
310 compiler/pipeline/gen8_vec4_generator.cpp
Cody Northrope8455b12014-09-17 16:18:12 -0600311 )
312
Chia-I Wufa6b3502014-12-15 23:46:12 +0800313set_source_files_properties(
314 compiler/shader/glsl_glass_manager.cpp
315 compiler/shader/glsl_glass_backend_translator.cpp
316 compiler/shader/glsl_glass_backend.cpp
317 compiler/shader/glsl_parser_extras.cpp
318 PROPERTIES COMPILE_FLAGS "-Wno-unknown-pragmas -Wno-ignored-qualifiers")
319
Cody Northrope8455b12014-09-17 16:18:12 -0600320SET(STANDALONE_COMPILER_SOURCES
321 compiler/shader/main.cpp
322 ${COMPILER_SOURCES}
Chia-I Wu155be032014-08-02 09:14:28 +0800323)
324
Courtney Goeltzenleuchtercec72952014-08-01 18:06:40 -0600325SET(SOURCES
Chia-I Wu09142132014-08-11 15:42:55 +0800326 cmd.c
Chia-I Wu00b51a82014-09-09 12:07:37 +0800327 cmd_decode.c
Chia-I Wuc14d1562014-10-17 09:49:22 +0800328 cmd_meta.c
Chia-I Wu31ecdc72014-08-31 12:58:56 +0800329 cmd_mi.c
Chia-I Wu525c6602014-08-27 10:22:34 +0800330 cmd_prepare.c
Chia-I Wub2755562014-08-20 13:38:52 +0800331 cmd_pipeline.c
Chia-I Wue54854a2014-08-05 10:23:50 +0800332 dev.c
Chia-I Wude2bb862014-08-19 14:32:47 +0800333 dispatch.c
Chia-I Wu75577d92014-08-11 10:54:33 +0800334 dset.c
Chia-I Wu41be94b2014-08-19 14:46:02 +0800335 intel.c
Chia-I Wu9737a102014-08-07 07:59:51 +0800336 event.c
Chia-I Wubdf4c562014-08-07 06:36:33 +0800337 fence.c
Chia-I Wuac6ba132014-08-07 14:21:43 +0800338 format.c
Chia-I Wu214dac62014-08-05 11:07:40 +0800339 gpu.c
Chia-I Wufeb441f2014-08-08 21:27:38 +0800340 img.c
Chia-I Wu8a8d8b62014-08-14 13:26:26 +0800341 layout.c
Chia-I Wuf9911eb2014-08-06 13:50:31 +0800342 mem.c
Chia-I Wu82f50aa2014-08-05 10:43:03 +0800343 obj.c
Courtney Goeltzenleuchter05a60542014-08-15 14:54:34 -0600344 pipeline.c
Chia-I Wu6b4b2782014-09-02 13:11:32 +0800345 pipeline_shader.c
Chia-I Wue18ff1b2014-08-07 13:38:51 +0800346 query.c
Chia-I Wue09b5362014-08-07 09:25:14 +0800347 queue.c
Chia-I Wu28b89962014-08-18 14:40:49 +0800348 sampler.c
Courtney Goeltzenleuchter52ec3362014-08-19 11:52:02 -0600349 shader.c
Chia-I Wua5714e82014-08-11 15:33:42 +0800350 state.c
Chia-I Wu5a323262014-08-11 10:31:53 +0800351 view.c
Chia-I Wu770b3092014-08-05 14:22:03 +0800352 kmd/winsys_drm.c
Cody Northrope8455b12014-09-17 16:18:12 -0600353 ${COMPILER_SOURCES}
Courtney Goeltzenleuchtercec72952014-08-01 18:06:40 -0600354 )
355
Chia-I Wub5e95f92014-09-23 15:36:53 +0800356pkg_check_modules(DRI3 xcb xcb-dri3 xcb-present)
Chia-I Wu1db76e02014-09-15 14:21:14 +0800357if (DRI3_FOUND)
358 add_definitions(-DENABLE_WSI_X11)
359 include_directories(${DRI3_INCLUDE_DIRS})
360 link_directories(${DRI3_LIBRARY_DIRS})
361 link_libraries(${DRI3_LIBRARIES})
362 set(SOURCES ${SOURCES} wsi_x11.c)
363endif()
364
Courtney Goeltzenleuchtere06e72d2014-08-01 12:44:23 -0600365add_library(XGL_i965 SHARED
Courtney Goeltzenleuchtercec72952014-08-01 18:06:40 -0600366 ${SOURCES}
Chia-I Wu3065c9c2014-08-04 06:28:31 +0800367 $<TARGET_OBJECTS:icd>
Courtney Goeltzenleuchtere06e72d2014-08-01 12:44:23 -0600368 )
Cody Northrope8455b12014-09-17 16:18:12 -0600369
Chia-I Wu96177272015-01-03 15:27:41 +0800370# set -Bsymbolic-functions for xglGetProcAddr()
371set_target_properties(XGL_i965 PROPERTIES
372 LINK_FLAGS -Wl,-Bsymbolic-functions)
373
Cody Northrop1b8b8fd2014-09-25 13:56:51 -0600374#add_executable(xglCompiler
375# ${STANDALONE_COMPILER_SOURCES}
376#)