Skip to content

Commit

Permalink
feat: don't build by default when subproject
Browse files Browse the repository at this point in the history
  • Loading branch information
qudix authored and powerof3 committed Oct 16, 2024
1 parent dd28e11 commit 7e5002c
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions xmake.lua
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
-- set minimum xmake version
set_xmakever("2.8.2")

-- make extras available
includes("xmake-extra.lua")

-- set project
set_project("commonlibsse")
set_arch("x64")
Expand All @@ -12,7 +9,10 @@ set_warnings("allextra")
set_encodings("utf-8")

-- add rules
add_rules("mode.debug", "mode.release")
add_rules("mode.debug", "mode.releasedbg")

-- make extras available
includes("xmake-extra.lua")

-- define options
option("skyrim_ae")
Expand Down Expand Up @@ -40,6 +40,9 @@ target("commonlibsse")
-- set target kind
set_kind("static")

-- set build by default
set_default(os.scriptdir() == os.projectdir())

-- add packages
add_packages("rsm-binary-io", "spdlog", { public = true })

Expand Down

0 comments on commit 7e5002c

Please sign in to comment.