Skip to content

Commit

Permalink
meson: use symlinks for locating headers
Browse files Browse the repository at this point in the history
This avoids crossing the "subproject sandbox", on which meson
complains.
  • Loading branch information
stsp committed Dec 6, 2023
1 parent b792a2a commit 51aa112
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions fdpp/hdr
1 change: 1 addition & 0 deletions fdpp/include
6 changes: 3 additions & 3 deletions fdpp/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ tg = subproject('thunk_gen')
TG = tg.get_variable('TG')
TFLAGS = ['-a', '2', '-p', '2']
SRC = TOP / 'kernel'
rel_inc = TOP / 'include/fdpp'
rel_inc = 'include/fdpp'
abs_inc = meson.current_source_dir() / rel_inc
incdir = include_directories(rel_inc)
cpp = meson.get_compiler('c')
Expand Down Expand Up @@ -62,7 +62,7 @@ ccfiles = ccgen.process(CFILES)

gad = custom_target('glob_asmdefs.h',
output: 'glob_asmdefs.h',
input: SRC / 'glob_asm.h',
input: 'src/glob_asm.h',
command: [MA, '@INPUT@'],
capture: true)

Expand Down Expand Up @@ -136,7 +136,7 @@ ppccf = ccgen.process(FDPP_CFILES)
FDPP_CCFILES = ['thunks.cc', 'thunks_c.cc', 'thunks_a.cc', 'thunks_p.cc',
'dosobj.cc']
CPPFILES = ['objhlp.cpp', 'ctors.cpp', 'farhlp.cpp', 'objtrace.cpp']
hdr = [TOP / 'kernel', TOP / 'hdr', TOP / 'fdpp', rel_inc]
hdr = ['src', 'hdr', '.', rel_inc]
incdir2 = include_directories(hdr)
shared_library('fdpp', [ccfiles, ppccf, FDPP_CCFILES, CPPFILES],
include_directories: incdir2,
Expand Down
1 change: 1 addition & 0 deletions fdpp/src

0 comments on commit 51aa112

Please sign in to comment.