Selaa lähdekoodia

Cleanup for new build with 0.0.1

default_compile_flags
vector-of-bool 5 vuotta sitten
vanhempi
commit
f599cbf343
7 muutettua tiedostoa jossa 12 lisäystä ja 74 poistoa
  1. +0
    -15
      remote.dds
  2. +1
    -7
      tools/build.py
  3. +0
    -2
      tools/ci.py
  4. +2
    -1
      tools/gcc-9.dds
  5. +9
    -0
      tools/self_build.py
  6. +0
    -30
      tools/self_deps_build.py
  7. +0
    -19
      tools/self_deps_get.py

+ 0
- 15
remote.dds Näytä tiedosto

@@ -1,15 +0,0 @@
Remote-Package: range-v3 0.10.0; git url=https://github.com/ericniebler/range-v3.git ref=0.10.0 auto=Niebler/range-v3
Remote-Package: spdlog 1.4.2; git url=https://github.com/gabime/spdlog.git ref=v1.4.2 auto=spdlog/spdlog

# Even a shallow clone of nlohmann-json is HUGE. This fork has only the minimal
Remote-Package: nlohmann-json 3.7.1; git url=https://github.com/vector-of-bool/json.git ref=dds/3.7.1

# MS never tags anything in this repo, so we'll use a fork that has some tags.
Remote-Package: ms-wil 2019.11.10; git url=https://github.com/vector-of-bool/wil.git ref=dds/2019.11.10

# XXX: Don't depend on a moving revision!
Remote-Package: neo-buffer 0.1.0; git url=https://github.com/vector-of-bool/neo-buffer.git ref=develop

Remote-Package: neo-sqlite3 0.2.2; git url=https://github.com/vector-of-bool/neo-sqlite3.git ref=0.2.2
Remote-Package: semver 0.2.1; git url=https://github.com/vector-of-bool/semver.git ref=0.2.1
Remote-Package: pubgrub 0.1.2; git url=https://github.com/vector-of-bool/pubgrub.git ref=0.1.2

+ 1
- 7
tools/build.py Näytä tiedosto

@@ -9,8 +9,6 @@ import shutil

from dds_ci import paths
from self_build import self_build
from self_deps_get import self_deps_get
from self_deps_build import self_deps_build

ROOT = Path(__file__).parent.parent.absolute()
BUILD_DIR = ROOT / '_build'
@@ -33,16 +31,12 @@ def main(argv: Sequence[str]) -> int:
shutil.rmtree(BUILD_DIR)

print(f'Using previously built DDS executable: {dds_exe}')
self_deps_get(dds_exe, paths.SELF_TEST_REPO_DIR)

if os.name == 'nt':
tc_fpath = ROOT / 'tools/msvc.dds'
else:
tc_fpath = ROOT / 'tools/gcc-9.dds'

self_deps_build(dds_exe, str(tc_fpath), paths.SELF_TEST_REPO_DIR,
ROOT / 'remote.dds')
self_build(dds_exe, toolchain=str(tc_fpath), dds_flags=['--apps'])
self_build(dds_exe, toolchain=str(tc_fpath))

return 0


+ 0
- 2
tools/ci.py Näytä tiedosto

@@ -9,8 +9,6 @@ import urllib.request
import shutil

from self_build import self_build
from self_deps_get import self_deps_get
from self_deps_build import self_deps_build
from dds_ci import paths, proc



+ 2
- 1
tools/gcc-9.dds Näytä tiedosto

@@ -5,5 +5,6 @@ C++-Compiler: g++-9
# Range-v3 0.10.0 contains an accidental conversion warning
Flags: -D SPDLOG_COMPILED_LIB -fconcepts -Werror=return-type -Wno-conversion
Link-Flags: -static-libgcc -static-libstdc++
Debug: True
# Debug: True
Optimize: True
Compiler-Launcher: ccache

+ 9
- 0
tools/self_build.py Näytä tiedosto

@@ -21,9 +21,18 @@ def self_build(exe: Path,
new_exe = ROOT / '_dds.bootstrap-test.exe'
shutil.copy2(exe, new_exe)
try:
proc.check_run(
new_exe,
'catalog',
'import',
f'--catalog=_build/catalog.db',
f'--json=catalog.json',
)
proc.check_run(
new_exe,
'build',
f'--catalog=_build/catalog.db',
f'--repo-dir=_build/ci-repo',
dds_flags,
('--toolchain', toolchain),
('-I', lmi_path) if lmi_path else (),

+ 0
- 30
tools/self_deps_build.py Näytä tiedosto

@@ -1,30 +0,0 @@
import argparse
from pathlib import Path

from dds_ci import cli, proc, paths


def self_deps_build(exe: Path, toolchain: str, repo_dir: Path,
remote_list: Path) -> None:
proc.check_run(
exe,
'deps',
'build',
('--repo-dir', repo_dir),
('-T', toolchain),
)


def main():
parser = argparse.ArgumentParser()
cli.add_dds_exe_arg(parser)
cli.add_tc_arg(parser)
parser.add_argument('--repo-dir', default=paths.SELF_TEST_REPO_DIR)
args = parser.parse_args()
self_deps_build(
Path(args.exe), args.toolchain, args.repo_dir,
paths.PROJECT_ROOT / 'remote.dds')


if __name__ == "__main__":
main()

+ 0
- 19
tools/self_deps_get.py Näytä tiedosto

@@ -1,19 +0,0 @@
from pathlib import Path

from dds_ci import proc, paths

PROJECT_ROOT = Path(__file__).absolute().parent.parent


def self_deps_get(dds_exe: Path, repo_dir: Path) -> None:
proc.check_run(
dds_exe,
'deps',
'get',
('--repo-dir', repo_dir),
('--remote-list', PROJECT_ROOT / 'remote.dds'),
)


if __name__ == "__main__":
self_deps_get(paths.CUR_BUILT_DDS, paths.SELF_TEST_REPO_DIR)

Loading…
Peruuta
Tallenna