1 if get_option('java') == ''
7 'include/liba_crc16.h',
8 'include/liba_crc32.h',
9 'include/liba_crc64.h',
10 'include/liba_crc8.h',
15 'include/liba_pid_fuzzy.h',
16 'include/liba_pid_neuro.h',
18 'include/liba_trajbell.h',
19 'include/liba_trajpoly3.h',
20 'include/liba_trajpoly5.h',
21 'include/liba_trajpoly7.h',
22 'include/liba_trajtrap.h',
23 'include/liba_version.h',
45 java_home = get_option('java').replace('\\', '/')
46 res = run_command(python, '-c', '''import os, sys, glob
47 res = os.path.join('@0@', 'include', '*', 'jni_md.h')
48 sys.stdout.write(os.path.dirname(glob.glob(res)[0]))
49 '''.format(java_home), capture: true, check: true
51 if res.returncode() == 0
52 includedir = java_home / 'include'
55 include_directories('include'),
56 include_directories(includedir),
57 include_directories(res.stdout()),
67 implicit_include_directories: false,
68 include_directories: include,
70 install_dir: get_option('libdir') / 'jni',
71 link_with: a.get_static_lib(),
72 name_prefix: build_machine.system() != 'windows' ? 'lib' : '',
79 'src/liba/crc16.java',
80 'src/liba/crc32.java',
81 'src/liba/crc64.java',
87 'src/liba/pid_fuzzy.java',
88 'src/liba/pid_neuro.java',
90 'src/liba/trajbell.java',
91 'src/liba/trajpoly3.java',
92 'src/liba/trajpoly5.java',
93 'src/liba/trajpoly7.java',
94 'src/liba/trajtrap.java',
95 'src/liba/version.java',
99 implicit_include_directories: false,
100 include_directories: include_directories('src'),