Courtney Goeltzenleuchter | e06e72d | 2014-08-01 12:44:23 -0600 | [diff] [blame] | 1 | # Create the i965 XGL DRI library |
2 | |||||
Courtney Goeltzenleuchter | e06e72d | 2014-08-01 12:44:23 -0600 | [diff] [blame] | 3 | link_directories ( |
Chia-I Wu | 155be03 | 2014-08-02 09:14:28 +0800 | [diff] [blame] | 4 | ${LIBDRM_LIBRARY_DIRS} |
Courtney Goeltzenleuchter | e06e72d | 2014-08-01 12:44:23 -0600 | [diff] [blame] | 5 | ) |
6 | |||||
7 | link_libraries ( | ||||
Chia-I Wu | 155be03 | 2014-08-02 09:14:28 +0800 | [diff] [blame] | 8 | ${LIBDRM_LIBRARIES} |
Courtney Goeltzenleuchter | e06e72d | 2014-08-01 12:44:23 -0600 | [diff] [blame] | 9 | udev |
10 | ) | ||||
11 | |||||
Chia-I Wu | 155be03 | 2014-08-02 09:14:28 +0800 | [diff] [blame] | 12 | include_directories ( |
13 | ${LIBDRM_INCLUDE_DIRS} | ||||
14 | ) | ||||
15 | |||||
Courtney Goeltzenleuchter | cec7295 | 2014-08-01 18:06:40 -0600 | [diff] [blame] | 16 | SET(SOURCES |
Chia-I Wu | 30c7829 | 2014-08-04 10:08:08 +0800 | [diff] [blame] | 17 | dispatch_tables.c |
Courtney Goeltzenleuchter | cec7295 | 2014-08-01 18:06:40 -0600 | [diff] [blame] | 18 | init_driver.c |
Chia-I Wu | 214dac6 | 2014-08-05 11:07:40 +0800 | [diff] [blame] | 19 | gpu.c |
Courtney Goeltzenleuchter | cec7295 | 2014-08-01 18:06:40 -0600 | [diff] [blame] | 20 | gpuinfo.c |
Chia-I Wu | 82f50aa | 2014-08-05 10:43:03 +0800 | [diff] [blame^] | 21 | obj.c |
Courtney Goeltzenleuchter | cec7295 | 2014-08-01 18:06:40 -0600 | [diff] [blame] | 22 | ) |
23 | |||||
24 | configure_file("${CMAKE_CURRENT_SOURCE_DIR}/GitSHA1.c.in" | ||||
25 | "${CMAKE_CURRENT_BINARY_DIR}/GitSHA1.c" @ONLY) | ||||
26 | |||||
27 | list(APPEND SOURCES "${CMAKE_CURRENT_BINARY_DIR}/GitSHA1.c" GitSHA1.h) | ||||
Courtney Goeltzenleuchter | e06e72d | 2014-08-01 12:44:23 -0600 | [diff] [blame] | 28 | |
29 | add_library(XGL_i965 SHARED | ||||
Courtney Goeltzenleuchter | cec7295 | 2014-08-01 18:06:40 -0600 | [diff] [blame] | 30 | ${SOURCES} |
Chia-I Wu | 3065c9c | 2014-08-04 06:28:31 +0800 | [diff] [blame] | 31 | $<TARGET_OBJECTS:icd> |
Courtney Goeltzenleuchter | e06e72d | 2014-08-01 12:44:23 -0600 | [diff] [blame] | 32 | ) |
33 | |||||
Courtney Goeltzenleuchter | e06e72d | 2014-08-01 12:44:23 -0600 | [diff] [blame] | 34 | # set_target_properties(i915_xgl PROPERTIES PREFIX "") |