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 Oct 7, 2024
1 parent 90424d5 commit 0fc18fc
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 @@ -266,11 +266,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 @@ -2197,6 +2200,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 @@ -128,20 +128,20 @@ 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 bogo_shim_object | libs
cli_name = bogo

# 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 ct_selftest_object | libs
cli_name = ct_selftest

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 @@ -176,9 +176,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 0fc18fc

Please sign in to comment.