Now About Social Code
summaryrefslogtreecommitdiff
path: root/meson.build
blob: f27f96fba86210835ca8f80ecaa29a61b58db066 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
project('drvemu', 'c',
        default_options : ['c_std=gnu99', 'buildtype=debug'])
add_project_arguments('-D_GNU_SOURCE', language: 'c')

dl = dependency('dl')

ddk_path = get_option('ddk-path')

if ddk_path == ''
   error('ddk-path is required')
endif

compiler = meson.get_compiler('c')
libdrm_path = '/home/lfryzek/Documents/projects/hw/ci20/images/rootfs_2015_09_09/usr/lib/mipsel-linux-gnu/sgx'
libdrm = compiler.find_library('libdrm',
                               dirs: libdrm_path)

incs = [
   ddk_path + '/services4/srvkm/hwdefs',
   ddk_path + '/include4',
   ddk_path + '/services4/include',
   ddk_path + '/services4/system/sgx_jz4780',
   ddk_path + '/services4/include/env/linux',
   ddk_path + '/services4/srvkm/devices/sgx',
   ddk_path + '/services4/srvkm/env/linux',
   './src'
]

shared_library('drvemu',
               'src/drvemu.c',
               build_by_default: true,
               include_directories: incs,
               dependencies: dl)

shared_library('wrap',
               'src/wrap.c',
               build_by_default: true,
               include_directories: incs,
               dependencies: dl)

executable('drv',
           'src/drv.c',
           build_by_default: true,
           include_directories: incs,
           dependencies: libdrm)