瀏覽代碼

ddslim -> dds

default_compile_flags
vector-of-bool 5 年之前
父節點
當前提交
fc06ecff9c
共有 8 個文件被更改,包括 24 次插入24 次删除
  1. +9
    -9
      azure-pipelines.yml
  2. +1
    -1
      library.dds
  3. +1
    -1
      package.dds
  4. +1
    -1
      src/dds/dds.main.cpp
  5. +2
    -2
      src/dds/proc.nix.cpp
  6. +3
    -3
      src/dds/util/paths.hpp
  7. +4
    -4
      tools/build.py
  8. +3
    -3
      tools/test.py

+ 9
- 9
azure-pipelines.yml 查看文件

@@ -12,12 +12,12 @@ jobs:
echo Executing build/test script
python -u tools/build.py --cxx cl.exe --test --static || exit 1
displayName: Build and Run Unit Tests
- publish: _build/ddslim.exe
artifact: DDSLiM Executable - Windows VS2019
- publish: _build/dds.exe
artifact: DDS Executable - Windows VS2019
- script: |
echo Loading VS environment
call "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Enterprise\\Common7\\Tools\\vsdevcmd" -arch=x64 || exit 1
python -u tools/test.py --exe _build/ddslim.exe -T tools/msvc.dds || exit 1
python -u tools/test.py --exe _build/dds.exe -T tools/msvc.dds || exit 1
displayName: Smoke Tests

- job: Linux_GCC8
@@ -28,9 +28,9 @@ jobs:
displayName: Prepare System
- script: python3 -u tools/build.py --cxx g++-8 --test --static
displayName: Build and Run Unit Tests
- publish: _build/ddslim
artifact: DDSLiM Executable - Linux
- script: python3 -u tools/test.py --exe _build/ddslim -T:gcc-8
- publish: _build/dds
artifact: DDS Executable - Linux
- script: python3 -u tools/test.py --exe _build/dds -T:gcc-8
displayName: Smoke Tests

- job: macOS_GCC8
@@ -41,7 +41,7 @@ jobs:
displayName: Prepare System
- script: python3 -u tools/build.py --cxx g++-8 --test
displayName: Build and Run Unit Tests
- publish: _build/ddslim
artifact: DDSLiM Executable - macOS
- script: python3 -u tools/test.py --exe _build/ddslim -T:gcc-8
- publish: _build/dds
artifact: DDS Executable - macOS
- script: python3 -u tools/test.py --exe _build/dds -T:gcc-8
displayName: Smoke Tests

+ 1
- 1
library.dds 查看文件

@@ -1,4 +1,4 @@
Name: ddslim
Name: dds

Uses: taywee/args
Uses: spdlog/spdlog

+ 1
- 1
package.dds 查看文件

@@ -1,2 +1,2 @@
Name: ddslim
Name: dds
Version: 0.1.0

src/dds/ddslim.main.cpp → src/dds/dds.main.cpp 查看文件

@@ -456,7 +456,7 @@ struct cli_deps {

int main(int argc, char** argv) {
spdlog::set_pattern("[%H:%M:%S] [%^%l%$] %v");
args::ArgumentParser parser("DDSLiM - The drop-dead-simple library manager");
args::ArgumentParser parser("DDS - The drop-dead-simple library manager");

cli_base cli{parser};
cli_build build{cli};

+ 2
- 2
src/dds/proc.nix.cpp 查看文件

@@ -48,12 +48,12 @@ spawn_child(const std::vector<std::string>& command, int stdout_pipe, int close_

if (errno == ENOENT) {
std::cerr << fmt::
format("[ddslim child executor] The requested executable ({}) could not be found.",
format("[dds child executor] The requested executable ({}) could not be found.",
strings[0]);
std::exit(-1);
}

std::cerr << "[ddslim child executor] execvp returned! This is a fatal error: "
std::cerr << "[dds child executor] execvp returned! This is a fatal error: "
<< std::system_category().message(errno) << '\n';

std::terminate();

+ 3
- 3
src/dds/util/paths.hpp 查看文件

@@ -9,8 +9,8 @@ fs::path user_data_dir();
fs::path user_cache_dir();
fs::path user_config_dir();

inline fs::path dds_data_dir() { return user_data_dir() / "ddslim"; }
inline fs::path dds_cache_dir() { return user_cache_dir() / "ddslim-cache"; }
inline fs::path dds_config_dir() { return user_config_dir() / "ddslim"; }
inline fs::path dds_data_dir() { return user_data_dir() / "dds"; }
inline fs::path dds_cache_dir() { return user_cache_dir() / "dds-cache"; }
inline fs::path dds_config_dir() { return user_config_dir() / "dds"; }

} // namespace dds

+ 4
- 4
tools/build.py 查看文件

@@ -132,7 +132,7 @@ def _compile_src(opts: BuildOptions, cpp_file: Path) -> Tuple[Path, Path]:
build_dir = ROOT / '_build'
src_dir = ROOT / 'src'
relpath = cpp_file.relative_to(src_dir)
obj_path = build_dir / relpath.with_name(relpath.name + opts.obj_suffix)
obj_path = build_dir / '_obj' / relpath.with_name(relpath.name + opts.obj_suffix)
obj_path.parent.mkdir(exist_ok=True, parents=True)
cmd = _create_compile_command(opts, cpp_file, obj_path)
msg = f'Compile C++ file: {cpp_file.relative_to(ROOT)}'
@@ -169,11 +169,11 @@ def compile_sources(opts: BuildOptions,
def _create_archive_command(opts: BuildOptions,
objects: Iterable[Path]) -> Tuple[Path, List[str]]:
if opts.is_msvc:
lib_file = ROOT / '_build/libddslim.lib'
lib_file = ROOT / '_build/libdds.lib'
cmd = ['lib', '/nologo', f'/OUT:{lib_file}', *map(str, objects)]
return lib_file, cmd
else:
lib_file = ROOT / '_build/libddslim.a'
lib_file = ROOT / '_build/libdds.a'
cmd = ['ar', 'rsc', str(lib_file), *map(str, objects)]
return lib_file, cmd

@@ -292,7 +292,7 @@ def main(argv: Sequence[str]) -> int:
build_opts,
objects[next(iter(main_sources))],
lib,
out=ROOT / '_build/ddslim')
out=ROOT / '_build/dds')

if args.test:
list(pool.map(run_test, test_exes))

+ 3
- 3
tools/test.py 查看文件

@@ -105,7 +105,7 @@ def run_tests(opts: TestOptions) -> int:
def bootstrap_self(opts: TestOptions):
# Copy the exe to another location, as windows refuses to let a binary be
# replaced while it is executing
new_exe = ROOT / '_ddslime.bootstrap-test.exe'
new_exe = ROOT / '_dds.bootstrap-test.exe'
shutil.copy2(opts.exe, new_exe)
res = subprocess.run([
str(new_exe),
@@ -125,12 +125,12 @@ def main(argv: List[str]) -> int:
parser.add_argument(
'--exe',
'-e',
help='Path to the ddslim executable to test',
help='Path to the dds executable to test',
required=True)
parser.add_argument(
'--toolchain',
'-T',
help='The ddslim toolchain to use while testing',
help='The dds toolchain to use while testing',
required=True,
)
parser.add_argument(

Loading…
取消
儲存