Skip to content

Commit

Permalink
Merge pull request #11 from OpenVicProject/fix/build
Browse files Browse the repository at this point in the history
Change headless library check to actually check library variable
  • Loading branch information
Spartan322 authored Jan 19, 2024
2 parents 55134f3 + d722dc8 commit 4863eaf
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 7 deletions.
4 changes: 2 additions & 2 deletions SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ library_name = "liblexy-vdf{}{}".format(suffix, env["LIBSUFFIX"])
default_args = []

if env["build_lvdf_library"]:
library = env.StaticLibrary(target=os.path.join(BINDIR, library_name), source=sources)
library = env.StaticLibrary(target=env.File(os.path.join(BINDIR, library_name)), source=sources)
default_args += [library]

env.Append(LIBPATH=[env.Dir(BINDIR)])
Expand All @@ -75,7 +75,7 @@ if env["build_lvdf_headless"]:
headless_env.Append(CPPDEFINES=["LEXY_VDF_HEADLESS"])
headless_env.Append(CPPPATH=[headless_env.Dir(headless_path)])
headless_env.headless_sources = env.GlobRecursive("*.cpp", headless_path)
if not env["build_lvdf_headless"]:
if not env["build_lvdf_library"]:
headless_env.headless_sources += sources
headless_program = headless_env.Program(
target=os.path.join(BINDIR, headless_name),
Expand Down
1 change: 0 additions & 1 deletion include/lexy-vdf/KeyValues.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
#include <cstdint>
#include <filesystem>
#include <initializer_list>
#include <optional>
#include <string>
#include <string_view>
#include <unordered_map>
Expand Down
1 change: 0 additions & 1 deletion include/lexy-vdf/Parser.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

#include <memory>
#include <string_view>
#include <unordered_map>
#include <unordered_set>
#include <vector>

Expand Down
3 changes: 0 additions & 3 deletions include/lexy-vdf/detail/BasicParser.hpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
#pragma once

#include <filesystem>
#include <optional>
#include <string_view>
#include <vector>

#include <lexy-vdf/ParseError.hpp>
Expand Down

0 comments on commit 4863eaf

Please sign in to comment.