blob: 10758fe19a331594724e48d00a49d511734dc6be [file] [log] [blame]
Courtney Goeltzenleuchtere06e72d2014-08-01 12:44:23 -06001# Create the i965 XGL DRI library
2
Chia-I Wuddbc8e22014-09-18 17:05:09 +08003pkg_check_modules(DRM REQUIRED libdrm libdrm_intel)
4
5include_directories (
6 ${ICD_INCLUDE_DIRS}
7 ${DRM_INCLUDE_DIRS}
8)
9
Courtney Goeltzenleuchtere06e72d2014-08-01 12:44:23 -060010link_directories (
Chia-I Wuddbc8e22014-09-18 17:05:09 +080011 ${ICD_LIBRARY_DIRS}
12 ${DRM_LIBRARY_DIRS}
Courtney Goeltzenleuchtere06e72d2014-08-01 12:44:23 -060013)
14
15link_libraries (
Chia-I Wuddbc8e22014-09-18 17:05:09 +080016 ${ICD_LIBRARIES}
17 ${DRM_LIBRARIES}
18 m
Chia-I Wu155be032014-08-02 09:14:28 +080019)
20
Courtney Goeltzenleuchtercec72952014-08-01 18:06:40 -060021SET(SOURCES
Chia-I Wu09142132014-08-11 15:42:55 +080022 cmd.c
Chia-I Wu00b51a82014-09-09 12:07:37 +080023 cmd_decode.c
Chia-I Wuc14d1562014-10-17 09:49:22 +080024 cmd_meta.c
Chia-I Wu31ecdc72014-08-31 12:58:56 +080025 cmd_mi.c
Chia-I Wu525c6602014-08-27 10:22:34 +080026 cmd_prepare.c
Chia-I Wub2755562014-08-20 13:38:52 +080027 cmd_pipeline.c
Chia-I Wue54854a2014-08-05 10:23:50 +080028 dev.c
Chia-I Wude2bb862014-08-19 14:32:47 +080029 dispatch.c
Chia-I Wu75577d92014-08-11 10:54:33 +080030 dset.c
Chia-I Wu41be94b2014-08-19 14:46:02 +080031 intel.c
Chia-I Wu9737a102014-08-07 07:59:51 +080032 event.c
Chia-I Wubdf4c562014-08-07 06:36:33 +080033 fence.c
Chia-I Wuac6ba132014-08-07 14:21:43 +080034 format.c
Chia-I Wu214dac62014-08-05 11:07:40 +080035 gpu.c
Chia-I Wufeb441f2014-08-08 21:27:38 +080036 img.c
Chia-I Wu8a8d8b62014-08-14 13:26:26 +080037 layout.c
Chia-I Wuf9911eb2014-08-06 13:50:31 +080038 mem.c
Chia-I Wu82f50aa2014-08-05 10:43:03 +080039 obj.c
Courtney Goeltzenleuchter05a60542014-08-15 14:54:34 -060040 pipeline.c
Chia-I Wu6b4b2782014-09-02 13:11:32 +080041 pipeline_shader.c
Chia-I Wue18ff1b2014-08-07 13:38:51 +080042 query.c
Chia-I Wue09b5362014-08-07 09:25:14 +080043 queue.c
Chia-I Wu28b89962014-08-18 14:40:49 +080044 sampler.c
Courtney Goeltzenleuchter52ec3362014-08-19 11:52:02 -060045 shader.c
Chia-I Wua5714e82014-08-11 15:33:42 +080046 state.c
Chia-I Wu5a323262014-08-11 10:31:53 +080047 view.c
Chia-I Wu770b3092014-08-05 14:22:03 +080048 kmd/winsys_drm.c
Courtney Goeltzenleuchtercec72952014-08-01 18:06:40 -060049 )
50
Chia-I Wub5e95f92014-09-23 15:36:53 +080051pkg_check_modules(DRI3 xcb xcb-dri3 xcb-present)
Chia-I Wu1db76e02014-09-15 14:21:14 +080052if (DRI3_FOUND)
53 add_definitions(-DENABLE_WSI_X11)
54 include_directories(${DRI3_INCLUDE_DIRS})
55 link_directories(${DRI3_LIBRARY_DIRS})
56 link_libraries(${DRI3_LIBRARIES})
57 set(SOURCES ${SOURCES} wsi_x11.c)
58endif()
59
Courtney Goeltzenleuchtere06e72d2014-08-01 12:44:23 -060060add_library(XGL_i965 SHARED
Courtney Goeltzenleuchtercec72952014-08-01 18:06:40 -060061 ${SOURCES}
Chia-I Wu3065c9c2014-08-04 06:28:31 +080062 $<TARGET_OBJECTS:icd>
Courtney Goeltzenleuchtere06e72d2014-08-01 12:44:23 -060063 )