blob: 1b749389b9a9d3d408f6777242c205619ef894fc [file] [log] [blame]
Courtney Goeltzenleuchtere06e72d2014-08-01 12:44:23 -06001# Create the i965 XGL DRI library
2
Courtney Goeltzenleuchtere06e72d2014-08-01 12:44:23 -06003link_directories (
Chia-I Wu155be032014-08-02 09:14:28 +08004 ${LIBDRM_LIBRARY_DIRS}
Chia-I Wu770b3092014-08-05 14:22:03 +08005 ${LIBDRM_INTEL_LIBRARY_DIRS}
Courtney Goeltzenleuchtere06e72d2014-08-01 12:44:23 -06006)
7
8link_libraries (
Chia-I Wu155be032014-08-02 09:14:28 +08009 ${LIBDRM_LIBRARIES}
Chia-I Wu770b3092014-08-05 14:22:03 +080010 ${LIBDRM_INTEL_LIBRARIES}
Courtney Goeltzenleuchtere06e72d2014-08-01 12:44:23 -060011 udev
12)
13
Chia-I Wu155be032014-08-02 09:14:28 +080014include_directories (
15 ${LIBDRM_INCLUDE_DIRS}
Chia-I Wu770b3092014-08-05 14:22:03 +080016 ${LIBDRM_INTEL_INCLUDE_DIRS}
Chia-I Wu155be032014-08-02 09:14:28 +080017)
18
Courtney Goeltzenleuchtercec72952014-08-01 18:06:40 -060019SET(SOURCES
Chia-I Wue54854a2014-08-05 10:23:50 +080020 dev.c
Chia-I Wu30c78292014-08-04 10:08:08 +080021 dispatch_tables.c
Chia-I Wu75577d92014-08-11 10:54:33 +080022 dset.c
Courtney Goeltzenleuchtercec72952014-08-01 18:06:40 -060023 init_driver.c
Chia-I Wu9737a102014-08-07 07:59:51 +080024 event.c
Chia-I Wubdf4c562014-08-07 06:36:33 +080025 fence.c
Chia-I Wuac6ba132014-08-07 14:21:43 +080026 format.c
Chia-I Wu214dac62014-08-05 11:07:40 +080027 gpu.c
Chia-I Wufeb441f2014-08-08 21:27:38 +080028 img.c
Chia-I Wu8a8d8b62014-08-14 13:26:26 +080029 layout.c
Chia-I Wuf9911eb2014-08-06 13:50:31 +080030 mem.c
Chia-I Wu82f50aa2014-08-05 10:43:03 +080031 obj.c
Chia-I Wue18ff1b2014-08-07 13:38:51 +080032 query.c
Chia-I Wue09b5362014-08-07 09:25:14 +080033 queue.c
Chia-I Wu28b89962014-08-18 14:40:49 +080034 sampler.c
Chia-I Wu5a323262014-08-11 10:31:53 +080035 view.c
Chia-I Wu770b3092014-08-05 14:22:03 +080036 kmd/winsys_drm.c
Courtney Goeltzenleuchtercec72952014-08-01 18:06:40 -060037 )
38
39configure_file("${CMAKE_CURRENT_SOURCE_DIR}/GitSHA1.c.in"
40 "${CMAKE_CURRENT_BINARY_DIR}/GitSHA1.c" @ONLY)
41
42list(APPEND SOURCES "${CMAKE_CURRENT_BINARY_DIR}/GitSHA1.c" GitSHA1.h)
Courtney Goeltzenleuchtere06e72d2014-08-01 12:44:23 -060043
44add_library(XGL_i965 SHARED
Courtney Goeltzenleuchtercec72952014-08-01 18:06:40 -060045 ${SOURCES}
Chia-I Wu3065c9c2014-08-04 06:28:31 +080046 $<TARGET_OBJECTS:icd>
Courtney Goeltzenleuchtere06e72d2014-08-01 12:44:23 -060047 )
48
Courtney Goeltzenleuchtere06e72d2014-08-01 12:44:23 -060049# set_target_properties(i915_xgl PROPERTIES PREFIX "")