Courtney Goeltzenleuchter | e06e72d | 2014-08-01 12:44:23 -0600 | [diff] [blame] | 1 | # Create the i965 XGL DRI library |
Cody Northrop | 0eb5eea | 2014-09-19 15:11:52 -0600 | [diff] [blame] | 2 | |
| 3 | # Mesa required defines |
Cody Northrop | e8455b1 | 2014-09-17 16:18:12 -0600 | [diff] [blame] | 4 | add_definitions(-D_GNU_SOURCE -DHAVE_PTHREAD) |
Cody Northrop | 0eb5eea | 2014-09-19 15:11:52 -0600 | [diff] [blame] | 5 | # LLVM required defines |
| 6 | add_definitions(-D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS) |
Cody Northrop | e8455b1 | 2014-09-17 16:18:12 -0600 | [diff] [blame] | 7 | |
Cody Northrop | 065538b | 2014-12-05 14:20:04 -0700 | [diff] [blame] | 8 | # DEBUG and NDEBUG flags are important for proper mesa behavior |
| 9 | set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -DDEBUG") |
| 10 | set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -DNDEBUG") |
| 11 | set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -DDEBUG") |
| 12 | set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -DNDEBUG") |
| 13 | |
Cody Northrop | e8455b1 | 2014-09-17 16:18:12 -0600 | [diff] [blame] | 14 | # LunarG TODO: Get the llvm-config flags hooked up correctly and remove extra definitions from above |
| 15 | |
Steve K | 14e0981 | 2014-09-19 09:45:36 -0600 | [diff] [blame] | 16 | execute_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 Northrop | 0eb5eea | 2014-09-19 15:11:52 -0600 | [diff] [blame] | 20 | string(REPLACE "\n" "" LLVM_LIBS_ALL ${LLVM_LIBS_ALL_1}) |
| 21 | message(STATUS "llvm-config lib results") |
| 22 | message(STATUS ${LLVM_LIBS_ALL}) |
| 23 | |
Steve K | 66d4080 | 2014-09-19 09:59:26 -0600 | [diff] [blame] | 24 | if(NOT "${LLVM_LIBS_RESULT}" EQUAL "0") |
| 25 | message(FATAL_ERROR "llvm-config failed: " ${LLVM_LIBS_RESULT}) |
Steve K | 14e0981 | 2014-09-19 09:45:36 -0600 | [diff] [blame] | 26 | endif() |
| 27 | |
Courtney Goeltzenleuchter | 62b2e85 | 2014-10-03 15:34:53 -0600 | [diff] [blame] | 28 | # Expect libraries to be in either the build (release build) or dbuild (debug) directories |
| 29 | if(EXISTS ${GLSLANG_PREFIX}/build/install/lib) |
| 30 | set(GLSLANG_BUILD ${GLSLANG_PREFIX}/build) |
| 31 | elseif(EXISTS ${GLSLANG_PREFIX}/dbuild/install/lib) |
| 32 | set(GLSLANG_BUILD ${GLSLANG_PREFIX}/dbuild) |
| 33 | else() |
| 34 | message(FATAL_ERROR "Necessary glslang libraries cannot be found: " ${GLSLANG_PREFIX}) |
| 35 | endif() |
| 36 | |
| 37 | if(EXISTS ${LUNARGLASS_PREFIX}/build/install/lib) |
| 38 | set(LUNARGLASS_BUILD ${LUNARGLASS_PREFIX}/build) |
| 39 | elseif(EXISTS ${LUNARGLASS_PREFIX}/dbuild/install/lib) |
| 40 | set(LUNARGLASS_BUILD ${LUNARGLASS_PREFIX}/dbuild) |
| 41 | else() |
| 42 | message(FATAL_ERROR "Necessary LunarGLASS libraries cannot be found: " ${LUNARGLASS_PREFIX}) |
| 43 | endif() |
Cody Northrop | e8455b1 | 2014-09-17 16:18:12 -0600 | [diff] [blame] | 44 | |
Cody Northrop | 0eb5eea | 2014-09-19 15:11:52 -0600 | [diff] [blame] | 45 | execute_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 K | 66d4080 | 2014-09-19 09:59:26 -0600 | [diff] [blame] | 47 | RESULT_VARIABLE LLVM_CXX_CONFIG_RESULT) |
| 48 | |
Cody Northrop | 0eb5eea | 2014-09-19 15:11:52 -0600 | [diff] [blame] | 49 | string(REPLACE "\n" "" LLVM_CXX_CONFIG_ALL ${LLVM_CXX_CONFIG_ALL_1}) |
| 50 | string(REPLACE "-Woverloaded-virtual" "" LLVM_CXX_CONFIG_1 ${LLVM_CXX_CONFIG_ALL}) |
| 51 | string(REPLACE "-fvisibility-inlines-hidden" "" LLVM_CXX_CONFIG ${LLVM_CXX_CONFIG_1}) |
| 52 | message(STATUS "llvm-config cxxflags results") |
| 53 | message(STATUS ${LLVM_CXX_CONFIG}) |
| 54 | |
Steve K | 66d4080 | 2014-09-19 09:59:26 -0600 | [diff] [blame] | 55 | # if(NOT "${LLVM_CXX_CONFIG_RESULT}" EQUAL "0") |
| 56 | # message(FATAL_ERROR "llvm-config failed: " ${LLVM_CXX_CONFIG_RESULT}) |
| 57 | # endif() |
| 58 | |
Steve K | 66d4080 | 2014-09-19 09:59:26 -0600 | [diff] [blame] | 59 | |
| 60 | set_target_properties(icd |
| 61 | PROPERTIES |
| 62 | COMPILE_FLAGS "${LLVM_CXX_CONFIG}") |
| 63 | |
Cody Northrop | e8455b1 | 2014-09-17 16:18:12 -0600 | [diff] [blame] | 64 | SET(COMPILER_LINK_DIRS |
Courtney Goeltzenleuchter | 62b2e85 | 2014-10-03 15:34:53 -0600 | [diff] [blame] | 65 | ${GLSLANG_BUILD}/install/lib |
Cody Northrop | e8455b1 | 2014-09-17 16:18:12 -0600 | [diff] [blame] | 66 | ${LUNARGLASS_PREFIX}/Core/LLVM/llvm-3.4/build/install/usr/local/lib |
Steve K | 42652ba | 2014-10-07 10:44:41 -0600 | [diff] [blame] | 67 | ${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 Northrop | e8455b1 | 2014-09-17 16:18:12 -0600 | [diff] [blame] | 74 | ) |
Courtney Goeltzenleuchter | e06e72d | 2014-08-01 12:44:23 -0600 | [diff] [blame] | 75 | |
Chia-I Wu | ddbc8e2 | 2014-09-18 17:05:09 +0800 | [diff] [blame] | 76 | pkg_check_modules(DRM REQUIRED libdrm libdrm_intel) |
| 77 | |
Cody Northrop | e8455b1 | 2014-09-17 16:18:12 -0600 | [diff] [blame] | 78 | link_directories ( |
| 79 | ${ICD_LIBRARY_DIRS} |
| 80 | ${DRM_LIBRARY_DIRS} |
| 81 | ${COMPILER_LINK_DIRS} |
Chia-I Wu | ddbc8e2 | 2014-09-18 17:05:09 +0800 | [diff] [blame] | 82 | ) |
| 83 | |
Cody Northrop | e8455b1 | 2014-09-17 16:18:12 -0600 | [diff] [blame] | 84 | SET(COMPILER_LIBS |
| 85 | glslangFrontend |
Steve K | 42652ba | 2014-10-07 10:44:41 -0600 | [diff] [blame] | 86 | BilFrontend |
Cody Northrop | e8455b1 | 2014-09-17 16:18:12 -0600 | [diff] [blame] | 87 | core |
| 88 | LLVMipo |
| 89 | glslang |
Steve K | 42652ba | 2014-10-07 10:44:41 -0600 | [diff] [blame] | 90 | BIL |
Cody Northrop | e8455b1 | 2014-09-17 16:18:12 -0600 | [diff] [blame] | 91 | OGLCompiler |
| 92 | ${LLVM_LIBS_ALL} |
Courtney Goeltzenleuchter | e06e72d | 2014-08-01 12:44:23 -0600 | [diff] [blame] | 93 | ) |
| 94 | |
| 95 | link_libraries ( |
Chia-I Wu | cafc88a | 2015-01-04 00:31:33 +0800 | [diff] [blame] | 96 | icd |
Cody Northrop | e8455b1 | 2014-09-17 16:18:12 -0600 | [diff] [blame] | 97 | ${ICD_LIBRARIES} |
| 98 | ${DRM_LIBRARIES} |
| 99 | ${COMPILER_LIBS} |
| 100 | m |
Steve K | da22404 | 2014-09-19 08:46:17 -0600 | [diff] [blame] | 101 | pthread |
| 102 | dl |
Cody Northrop | e8455b1 | 2014-09-17 16:18:12 -0600 | [diff] [blame] | 103 | ) |
| 104 | |
| 105 | SET(COMPILER_INCLUDE_DIRS |
| 106 | ${GLSLANG_PREFIX} |
| 107 | ${LUNARGLASS_PREFIX}/Core/LLVM/llvm-3.4/build/install/usr/local/include |
| 108 | ${LUNARGLASS_PREFIX} |
Cody Northrop | 0eb5eea | 2014-09-19 15:11:52 -0600 | [diff] [blame] | 109 | ${CMAKE_CURRENT_SOURCE_DIR} |
Cody Northrop | bc85143 | 2014-09-23 10:06:32 -0600 | [diff] [blame] | 110 | compiler/shader |
Cody Northrop | e8455b1 | 2014-09-17 16:18:12 -0600 | [diff] [blame] | 111 | compiler/mesa-utils/include |
Cody Northrop | bc85143 | 2014-09-23 10:06:32 -0600 | [diff] [blame] | 112 | compiler/mesa-utils/src |
Cody Northrop | e8455b1 | 2014-09-17 16:18:12 -0600 | [diff] [blame] | 113 | compiler/mesa-utils/src/glsl |
| 114 | compiler/mesa-utils/src/mesa |
Cody Northrop | bc85143 | 2014-09-23 10:06:32 -0600 | [diff] [blame] | 115 | compiler/mesa-utils/src/mesa/program |
Cody Northrop | e8455b1 | 2014-09-17 16:18:12 -0600 | [diff] [blame] | 116 | compiler/mesa-utils/src/mapi |
| 117 | ) |
| 118 | |
| 119 | include_directories ( |
| 120 | ${ICD_INCLUDE_DIRS} |
| 121 | ${DRM_INCLUDE_DIRS} |
| 122 | ${COMPILER_INCLUDE_DIRS} |
| 123 | ) |
| 124 | |
| 125 | |
| 126 | SET(COMPILER_SOURCES |
| 127 | compiler/shader/ast_array_index.cpp |
| 128 | compiler/shader/ast_expr.cpp |
| 129 | compiler/shader/ast_function.cpp |
| 130 | compiler/shader/ast_to_hir.cpp |
| 131 | compiler/shader/ast_type.cpp |
| 132 | compiler/shader/builtin_functions.cpp |
| 133 | compiler/shader/builtin_types.cpp |
| 134 | compiler/shader/builtin_variables.cpp |
| 135 | compiler/shader/ir.cpp |
| 136 | compiler/shader/ir_basic_block.cpp |
| 137 | compiler/shader/ir_builder.cpp |
| 138 | compiler/shader/ir_clone.cpp |
| 139 | compiler/shader/ir_constant_expression.cpp |
| 140 | compiler/shader/ir_deserializer.cpp |
| 141 | compiler/shader/ir_equals.cpp |
| 142 | compiler/shader/ir_expression_flattening.cpp |
| 143 | compiler/shader/ir_function_can_inline.cpp |
| 144 | compiler/shader/ir_function.cpp |
| 145 | compiler/shader/ir_function_detect_recursion.cpp |
| 146 | compiler/shader/ir_hierarchical_visitor.cpp |
| 147 | compiler/shader/ir_hv_accept.cpp |
| 148 | compiler/shader/ir_import_prototypes.cpp |
| 149 | compiler/shader/ir_print_visitor.cpp |
| 150 | compiler/shader/ir_reader.cpp |
| 151 | compiler/shader/ir_rvalue_visitor.cpp |
| 152 | compiler/shader/ir_serialize.cpp |
| 153 | compiler/shader/ir_set_program_inouts.cpp |
| 154 | compiler/shader/ir_validate.cpp |
| 155 | compiler/shader/ir_variable_refcount.cpp |
| 156 | compiler/shader/link_atomics.cpp |
| 157 | compiler/shader/linker.cpp |
| 158 | compiler/shader/link_functions.cpp |
| 159 | compiler/shader/link_interface_blocks.cpp |
| 160 | compiler/shader/link_uniform_block_active_visitor.cpp |
| 161 | compiler/shader/link_uniform_blocks.cpp |
| 162 | compiler/shader/link_uniform_initializers.cpp |
| 163 | compiler/shader/link_uniforms.cpp |
| 164 | compiler/shader/link_varyings.cpp |
| 165 | compiler/shader/loop_analysis.cpp |
| 166 | compiler/shader/loop_controls.cpp |
| 167 | compiler/shader/loop_unroll.cpp |
| 168 | compiler/shader/lower_clip_distance.cpp |
| 169 | compiler/shader/lower_discard.cpp |
| 170 | compiler/shader/lower_discard_flow.cpp |
| 171 | compiler/shader/lower_if_to_cond_assign.cpp |
| 172 | compiler/shader/lower_instructions.cpp |
| 173 | compiler/shader/lower_jumps.cpp |
| 174 | compiler/shader/lower_mat_op_to_vec.cpp |
| 175 | compiler/shader/lower_named_interface_blocks.cpp |
| 176 | compiler/shader/lower_noise.cpp |
| 177 | compiler/shader/lower_offset_array.cpp |
| 178 | compiler/shader/lower_output_reads.cpp |
| 179 | compiler/shader/lower_packed_varyings.cpp |
| 180 | compiler/shader/lower_packing_builtins.cpp |
| 181 | compiler/shader/lower_texture_projection.cpp |
| 182 | compiler/shader/lower_ubo_reference.cpp |
| 183 | compiler/shader/lower_variable_index_to_cond_assign.cpp |
| 184 | compiler/shader/lower_vec_index_to_cond_assign.cpp |
| 185 | compiler/shader/lower_vec_index_to_swizzle.cpp |
| 186 | compiler/shader/lower_vector.cpp |
| 187 | compiler/shader/lower_vector_insert.cpp |
| 188 | compiler/shader/opt_algebraic.cpp |
| 189 | compiler/shader/opt_array_splitting.cpp |
| 190 | compiler/shader/opt_constant_folding.cpp |
| 191 | compiler/shader/opt_constant_propagation.cpp |
| 192 | compiler/shader/opt_constant_variable.cpp |
| 193 | compiler/shader/opt_copy_propagation.cpp |
| 194 | compiler/shader/opt_copy_propagation_elements.cpp |
| 195 | compiler/shader/opt_cse.cpp |
| 196 | compiler/shader/opt_dead_builtin_varyings.cpp |
| 197 | compiler/shader/opt_dead_code.cpp |
| 198 | compiler/shader/opt_dead_code_local.cpp |
| 199 | compiler/shader/opt_dead_functions.cpp |
| 200 | compiler/shader/opt_flatten_nested_if_blocks.cpp |
| 201 | compiler/shader/opt_flip_matrices.cpp |
| 202 | compiler/shader/opt_function_inlining.cpp |
| 203 | compiler/shader/opt_if_simplification.cpp |
| 204 | compiler/shader/opt_noop_swizzle.cpp |
| 205 | compiler/shader/opt_redundant_jumps.cpp |
| 206 | compiler/shader/opt_structure_splitting.cpp |
| 207 | compiler/shader/opt_swizzle_swizzle.cpp |
| 208 | compiler/shader/opt_tree_grafting.cpp |
| 209 | compiler/shader/opt_vectorize.cpp |
| 210 | compiler/shader/s_expression.cpp |
| 211 | # compiler/shader/shader_deserialize.cpp |
| 212 | # compiler/shader/shader_serialize.cpp |
| 213 | # compiler/shader/standalone_scaffolding.cpp |
| 214 | compiler/shader/strtod.cpp |
| 215 | |
| 216 | compiler/mesa-utils/src/glsl/ralloc.c |
| 217 | compiler/mesa-utils/src/mesa/program/program.c |
| 218 | # compiler/mesa-utils/src/mesa/program/prog_execute.c |
| 219 | # compiler/mesa-utils/src/mesa/program/prog_noise.c |
Steve K | da22404 | 2014-09-19 08:46:17 -0600 | [diff] [blame] | 220 | compiler/mesa-utils/src/mesa/program/prog_statevars.c |
Cody Northrop | e8455b1 | 2014-09-17 16:18:12 -0600 | [diff] [blame] | 221 | # compiler/mesa-utils/src/mesa/program/prog_opt_constant_fold.c |
| 222 | compiler/mesa-utils/src/mesa/program/symbol_table.c |
Steve K | da22404 | 2014-09-19 08:46:17 -0600 | [diff] [blame] | 223 | # compiler/mesa-utils/src/mesa/program/prog_cache.c |
Cody Northrop | e8455b1 | 2014-09-17 16:18:12 -0600 | [diff] [blame] | 224 | compiler/mesa-utils/src/mesa/program/prog_instruction.c |
| 225 | # compiler/mesa-utils/src/mesa/program/prog_optimize.c |
| 226 | # compiler/mesa-utils/src/mesa/program/arbprogparse.c |
| 227 | compiler/mesa-utils/src/mesa/program/prog_hash_table.c |
| 228 | compiler/mesa-utils/src/mesa/program/prog_parameter.c |
| 229 | # compiler/mesa-utils/src/mesa/program/prog_diskcache.c |
| 230 | # compiler/mesa-utils/src/mesa/program/program_parse.tab.c |
| 231 | # compiler/mesa-utils/src/mesa/program/programopt.c |
| 232 | # compiler/mesa-utils/src/mesa/program/prog_print.c |
| 233 | # compiler/mesa-utils/src/mesa/program/program_parse_extra.c |
| 234 | # compiler/mesa-utils/src/mesa/program/prog_parameter_layout.c |
Cody Northrop | bc85143 | 2014-09-23 10:06:32 -0600 | [diff] [blame] | 235 | compiler/mesa-utils/src/mesa/program/register_allocate.c |
Cody Northrop | e8455b1 | 2014-09-17 16:18:12 -0600 | [diff] [blame] | 236 | # compiler/mesa-utils/src/mesa/math/m_matrix.c |
| 237 | # compiler/mesa-utils/src/mesa/main/enums.c |
| 238 | # compiler/mesa-utils/src/mesa/main/imports.c |
| 239 | compiler/mesa-utils/src/mesa/main/hash.c |
| 240 | compiler/mesa-utils/src/mesa/main/hash_table.c |
| 241 | # compiler/mesa-utils/src/mesa/main/errors.c |
| 242 | # compiler/mesa-utils/src/mesa/main/formats.c |
| 243 | |
| 244 | compiler/mesa-utils/src/mesa/main/errors.c |
| 245 | # compiler/mesa-utils/src/mesa/main/context.c |
| 246 | compiler/mesa-utils/src/mesa/main/enums.c |
| 247 | compiler/mesa-utils/src/mesa/main/imports.c |
| 248 | compiler/mesa-utils/src/mesa/main/version.c |
Cody Northrop | fb3b898 | 2014-10-21 09:47:26 -0600 | [diff] [blame] | 249 | compiler/mesa-utils/src/mesa/main/uniforms.c |
Cody Northrop | e8455b1 | 2014-09-17 16:18:12 -0600 | [diff] [blame] | 250 | |
Cody Northrop | 0eb5eea | 2014-09-19 15:11:52 -0600 | [diff] [blame] | 251 | #compiler/mesa-utils/src/mesa/main/shaderobj.c |
| 252 | |
Cody Northrop | bce1b88 | 2014-10-20 16:42:23 -0600 | [diff] [blame] | 253 | compiler/mesa-utils/src/mesa/program/sampler.cpp |
| 254 | |
Cody Northrop | e8455b1 | 2014-09-17 16:18:12 -0600 | [diff] [blame] | 255 | compiler/shader/glsl_glass_manager.cpp |
| 256 | compiler/shader/glsl_glass_backend_translator.cpp |
| 257 | compiler/shader/glsl_glass_backend.cpp |
| 258 | |
| 259 | compiler/shader/glsl_parser_extras.cpp |
| 260 | compiler/shader/ossource.cpp |
| 261 | compiler/shader/standalone_scaffolding.cpp |
| 262 | compiler/shader/glsl_types.cpp |
| 263 | compiler/shader/glsl_symbol_table.cpp |
| 264 | compiler/shader/hir_field_selection.cpp |
| 265 | |
Cody Northrop | 0eb5eea | 2014-09-19 15:11:52 -0600 | [diff] [blame] | 266 | compiler/shader/compiler_interface.cpp |
| 267 | |
Cody Northrop | bc85143 | 2014-09-23 10:06:32 -0600 | [diff] [blame] | 268 | # File required for backend compiler |
| 269 | compiler/pipeline/pipeline_compiler_interface.cpp |
Chia-I Wu | 7115a7a | 2014-10-22 13:48:59 +0800 | [diff] [blame] | 270 | compiler/pipeline/pipeline_compiler_interface_meta.cpp |
Chia-I Wu | e25293b | 2014-10-22 13:23:31 +0800 | [diff] [blame] | 271 | compiler/pipeline/brw_blorp_blit_eu.cpp |
Cody Northrop | bc85143 | 2014-09-23 10:06:32 -0600 | [diff] [blame] | 272 | compiler/pipeline/brw_shader.cpp |
| 273 | compiler/pipeline/brw_fs.cpp |
| 274 | compiler/pipeline/brw_fs_visitor.cpp |
| 275 | compiler/pipeline/brw_fs_live_variables.cpp |
| 276 | compiler/pipeline/brw_cfg.cpp |
| 277 | compiler/pipeline/brw_fs_cse.cpp |
| 278 | compiler/pipeline/brw_fs_copy_propagation.cpp |
| 279 | compiler/pipeline/brw_fs_peephole_predicated_break.cpp |
| 280 | compiler/pipeline/brw_fs_dead_code_eliminate.cpp |
| 281 | compiler/pipeline/brw_fs_sel_peephole.cpp |
| 282 | compiler/pipeline/brw_dead_control_flow.cpp |
| 283 | compiler/pipeline/brw_fs_saturate_propagation.cpp |
| 284 | compiler/pipeline/brw_fs_register_coalesce.cpp |
| 285 | compiler/pipeline/brw_schedule_instructions.cpp |
| 286 | compiler/pipeline/brw_fs_reg_allocate.cpp |
| 287 | compiler/pipeline/brw_fs_generator.cpp |
| 288 | compiler/pipeline/brw_lower_texture_gradients.cpp |
| 289 | compiler/pipeline/brw_cubemap_normalize.cpp |
| 290 | compiler/pipeline/brw_lower_unnormalized_offset.cpp |
| 291 | compiler/pipeline/brw_fs_channel_expressions.cpp |
| 292 | compiler/pipeline/brw_fs_vector_splitting.cpp |
Cody Northrop | e8455b1 | 2014-09-17 16:18:12 -0600 | [diff] [blame] | 293 | |
Cody Northrop | bc85143 | 2014-09-23 10:06:32 -0600 | [diff] [blame] | 294 | compiler/pipeline/brw_disasm.c |
| 295 | compiler/pipeline/brw_device_info.c |
| 296 | compiler/pipeline/brw_eu.c |
| 297 | compiler/pipeline/brw_program.c |
| 298 | compiler/pipeline/brw_wm.c |
| 299 | compiler/pipeline/brw_eu_emit.c |
| 300 | compiler/pipeline/brw_eu_compact.c |
| 301 | compiler/pipeline/intel_debug.c |
Cody Northrop | 83e2b03 | 2014-09-25 17:00:31 -0600 | [diff] [blame] | 302 | |
| 303 | compiler/pipeline/brw_vs.c |
| 304 | compiler/pipeline/brw_vec4.cpp |
| 305 | compiler/pipeline/brw_vec4_visitor.cpp |
| 306 | compiler/pipeline/brw_vec4_vs_visitor.cpp |
| 307 | compiler/pipeline/brw_vec4_live_variables.cpp |
| 308 | compiler/pipeline/brw_vec4_copy_propagation.cpp |
| 309 | compiler/pipeline/brw_vec4_reg_allocate.cpp |
| 310 | compiler/pipeline/brw_vec4_generator.cpp |
| 311 | compiler/pipeline/gen8_vec4_generator.cpp |
Cody Northrop | e8455b1 | 2014-09-17 16:18:12 -0600 | [diff] [blame] | 312 | ) |
| 313 | |
Chia-I Wu | fa6b350 | 2014-12-15 23:46:12 +0800 | [diff] [blame] | 314 | set_source_files_properties( |
| 315 | compiler/shader/glsl_glass_manager.cpp |
| 316 | compiler/shader/glsl_glass_backend_translator.cpp |
| 317 | compiler/shader/glsl_glass_backend.cpp |
| 318 | compiler/shader/glsl_parser_extras.cpp |
| 319 | PROPERTIES COMPILE_FLAGS "-Wno-unknown-pragmas -Wno-ignored-qualifiers") |
| 320 | |
Cody Northrop | e8455b1 | 2014-09-17 16:18:12 -0600 | [diff] [blame] | 321 | SET(STANDALONE_COMPILER_SOURCES |
| 322 | compiler/shader/main.cpp |
| 323 | ${COMPILER_SOURCES} |
Chia-I Wu | 155be03 | 2014-08-02 09:14:28 +0800 | [diff] [blame] | 324 | ) |
| 325 | |
Chia-I Wu | f77c290 | 2015-01-04 00:34:44 +0800 | [diff] [blame^] | 326 | add_custom_command(OUTPUT intel_gpa.c |
| 327 | COMMAND ${PROJECT_SOURCE_DIR}/xgl-generate.py icd-get-proc-addr > intel_gpa.c |
| 328 | DEPENDS ${PROJECT_SOURCE_DIR}/xgl-generate.py ${PROJECT_SOURCE_DIR}/xgl.py) |
| 329 | |
Courtney Goeltzenleuchter | cec7295 | 2014-08-01 18:06:40 -0600 | [diff] [blame] | 330 | SET(SOURCES |
Chia-I Wu | 0914213 | 2014-08-11 15:42:55 +0800 | [diff] [blame] | 331 | cmd.c |
Chia-I Wu | 00b51a8 | 2014-09-09 12:07:37 +0800 | [diff] [blame] | 332 | cmd_decode.c |
Chia-I Wu | c14d156 | 2014-10-17 09:49:22 +0800 | [diff] [blame] | 333 | cmd_meta.c |
Chia-I Wu | 31ecdc7 | 2014-08-31 12:58:56 +0800 | [diff] [blame] | 334 | cmd_mi.c |
Chia-I Wu | 525c660 | 2014-08-27 10:22:34 +0800 | [diff] [blame] | 335 | cmd_prepare.c |
Chia-I Wu | b275556 | 2014-08-20 13:38:52 +0800 | [diff] [blame] | 336 | cmd_pipeline.c |
Chia-I Wu | e54854a | 2014-08-05 10:23:50 +0800 | [diff] [blame] | 337 | dev.c |
Chia-I Wu | 75577d9 | 2014-08-11 10:54:33 +0800 | [diff] [blame] | 338 | dset.c |
Chia-I Wu | 41be94b | 2014-08-19 14:46:02 +0800 | [diff] [blame] | 339 | intel.c |
Chia-I Wu | f77c290 | 2015-01-04 00:34:44 +0800 | [diff] [blame^] | 340 | intel_gpa.c |
Chia-I Wu | 9737a10 | 2014-08-07 07:59:51 +0800 | [diff] [blame] | 341 | event.c |
Chia-I Wu | bdf4c56 | 2014-08-07 06:36:33 +0800 | [diff] [blame] | 342 | fence.c |
Chia-I Wu | ac6ba13 | 2014-08-07 14:21:43 +0800 | [diff] [blame] | 343 | format.c |
Chia-I Wu | 214dac6 | 2014-08-05 11:07:40 +0800 | [diff] [blame] | 344 | gpu.c |
Chia-I Wu | feb441f | 2014-08-08 21:27:38 +0800 | [diff] [blame] | 345 | img.c |
Chia-I Wu | 8a8d8b6 | 2014-08-14 13:26:26 +0800 | [diff] [blame] | 346 | layout.c |
Chia-I Wu | f9911eb | 2014-08-06 13:50:31 +0800 | [diff] [blame] | 347 | mem.c |
Chia-I Wu | 82f50aa | 2014-08-05 10:43:03 +0800 | [diff] [blame] | 348 | obj.c |
Courtney Goeltzenleuchter | 05a6054 | 2014-08-15 14:54:34 -0600 | [diff] [blame] | 349 | pipeline.c |
Chia-I Wu | 6b4b278 | 2014-09-02 13:11:32 +0800 | [diff] [blame] | 350 | pipeline_shader.c |
Chia-I Wu | e18ff1b | 2014-08-07 13:38:51 +0800 | [diff] [blame] | 351 | query.c |
Chia-I Wu | e09b536 | 2014-08-07 09:25:14 +0800 | [diff] [blame] | 352 | queue.c |
Chia-I Wu | 28b8996 | 2014-08-18 14:40:49 +0800 | [diff] [blame] | 353 | sampler.c |
Courtney Goeltzenleuchter | 52ec336 | 2014-08-19 11:52:02 -0600 | [diff] [blame] | 354 | shader.c |
Chia-I Wu | a5714e8 | 2014-08-11 15:33:42 +0800 | [diff] [blame] | 355 | state.c |
Chia-I Wu | 5a32326 | 2014-08-11 10:31:53 +0800 | [diff] [blame] | 356 | view.c |
Chia-I Wu | 770b309 | 2014-08-05 14:22:03 +0800 | [diff] [blame] | 357 | kmd/winsys_drm.c |
Cody Northrop | e8455b1 | 2014-09-17 16:18:12 -0600 | [diff] [blame] | 358 | ${COMPILER_SOURCES} |
Courtney Goeltzenleuchter | cec7295 | 2014-08-01 18:06:40 -0600 | [diff] [blame] | 359 | ) |
| 360 | |
Chia-I Wu | b5e95f9 | 2014-09-23 15:36:53 +0800 | [diff] [blame] | 361 | pkg_check_modules(DRI3 xcb xcb-dri3 xcb-present) |
Chia-I Wu | 1db76e0 | 2014-09-15 14:21:14 +0800 | [diff] [blame] | 362 | if (DRI3_FOUND) |
| 363 | add_definitions(-DENABLE_WSI_X11) |
| 364 | include_directories(${DRI3_INCLUDE_DIRS}) |
| 365 | link_directories(${DRI3_LIBRARY_DIRS}) |
| 366 | link_libraries(${DRI3_LIBRARIES}) |
| 367 | set(SOURCES ${SOURCES} wsi_x11.c) |
| 368 | endif() |
| 369 | |
Chia-I Wu | cafc88a | 2015-01-04 00:31:33 +0800 | [diff] [blame] | 370 | add_library(XGL_i965 SHARED ${SOURCES}) |
Cody Northrop | e8455b1 | 2014-09-17 16:18:12 -0600 | [diff] [blame] | 371 | |
Chia-I Wu | 9617727 | 2015-01-03 15:27:41 +0800 | [diff] [blame] | 372 | # set -Bsymbolic-functions for xglGetProcAddr() |
| 373 | set_target_properties(XGL_i965 PROPERTIES |
| 374 | LINK_FLAGS -Wl,-Bsymbolic-functions) |
| 375 | |
Cody Northrop | 1b8b8fd | 2014-09-25 13:56:51 -0600 | [diff] [blame] | 376 | #add_executable(xglCompiler |
| 377 | # ${STANDALONE_COMPILER_SOURCES} |
| 378 | #) |