Skip to content

Commit

Permalink
drop bogo and ct_selftest object files in build/...
Browse files Browse the repository at this point in the history
  • Loading branch information
reneme committed Sep 10, 2024
1 parent 2b7fc34 commit 471925b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
4 changes: 4 additions & 0 deletions configure.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,11 +265,14 @@ def find_headers_in(basedir, srcdir):
self.fuzzer_output_dir = None
self.fuzzobj_dir = None

self.miscobj_dir = os.path.join(self.build_dir, 'obj', 'misc')

def build_dirs(self):
out = [
self.libobj_dir,
self.cliobj_dir,
self.testobj_dir,
self.miscobj_dir,
self.public_include_dir,
self.internal_include_dir,
self.external_include_dir,
Expand Down Expand Up @@ -2194,6 +2197,7 @@ def test_exe_extra_ldflags():
'cliobj_dir': build_paths.cliobj_dir,
'testobj_dir': build_paths.testobj_dir,
'fuzzobj_dir': build_paths.fuzzobj_dir,
'miscobj_dir': build_paths.miscobj_dir,

'fuzzer_output_dir': build_paths.fuzzer_output_dir if build_paths.fuzzer_output_dir else '',
'doc_output_dir': build_paths.doc_output_dir,
Expand Down
12 changes: 6 additions & 6 deletions src/build-data/ninja.in
Original file line number Diff line number Diff line change
Expand Up @@ -120,18 +120,18 @@ build examples: phony | %{example_bin}

%{if build_bogo_shim}

build botan_bogo_shim: link_cli bogo_shim_object | libs
build %{out_dir}/botan_bogo_shim: link_cli %{miscobj_dir}/bogo_shim.o | libs

# BoGo shim
build %{out_dir}/bogo_shim_object: compile_exe %{bogo_shim_src}
build %{miscobj_dir}/bogo_shim.o: compile_exe %{bogo_shim_src}

%{endif}

%{if build_ct_selftest}

build botan_ct_selftest: link_cli ct_selftest_object | libs
build %{out_dir}/botan_ct_selftest: link_cli %{miscobj_dir}/ct_selftest.o | libs

build %{out_dir}/ct_selftest_object: compile_exe %{ct_selftest_src}
build %{miscobj_dir}/ct_selftest.o: compile_exe %{ct_selftest_src}

%{endif}

Expand Down Expand Up @@ -166,9 +166,9 @@ build cli: phony %{cli_exe}

build tests: phony %{test_exe}

build bogo_shim: phony botan_bogo_shim
build bogo_shim: phony %{out_dir}/botan_bogo_shim

build ct_selftest: phony botan_ct_selftest
build ct_selftest: phony %{out_dir}/botan_ct_selftest

build libs: phony %{library_targets} $
%{if symlink_shared_lib}
Expand Down

0 comments on commit 471925b

Please sign in to comment.