Skip to content

Commit

Permalink
meson: use dependencies in preprocess()
Browse files Browse the repository at this point in the history
  • Loading branch information
stsp committed May 1, 2024
1 parent f510329 commit 81a3419
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,9 @@ libdj = dependency('dj64')
cpp = meson.get_compiler('c')
sfiles = cpp.preprocess(['plt.S'],
output: '@[email protected]',
# include_directories: libdj.compile_args(),
include_directories:
[include_directories('/usr/local/i386-pc-dj64/include')],
depends: plt_inc,
compile_args: ['-D__ASSEMBLER__', '-DDJ64'])
dependencies: libdj,
compile_args: ['-D__ASSEMBLER__'])

env = environment()
env.set('CPP', 'cpp')
Expand Down Expand Up @@ -68,7 +66,7 @@ r = run_command('git', 'describe', '--dirty=+', check: true)
REVISIONID = r.stdout().strip()
libcc64 = shared_library('comcom64', [CFILES],
sources: [tc],
c_args: ['-DDJ64', '-DREV_ID="' + REVISIONID + '"'],
c_args: ['-DREV_ID="' + REVISIONID + '"'],
dependencies: libdj,
link_args: ['-Wl,-Bsymbolic', '-Wl,-rpath=/usr/local/i386-pc-dj64/lib64',
'-Wl,-rpath=/usr/i386-pc-dj64/lib64'])
Expand Down

0 comments on commit 81a3419

Please sign in to comment.