这是indexloc提供的服务,不要输入任何密码
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,11 @@ libopenage: $(BUILDDIR)

.PHONY: codegen
codegen: $(BUILDDIR)
$(MAKE) $(MAKEARGS) -C $(BUILDDIR) codegen
$(MAKE) $(MAKEARGS) -C $(BUILDDIR) cppgen

.PHONY: cppgen
cppgen: $(BUILDDIR)
$(MAKE) $(MAKEARGS) -C $(BUILDDIR) cppgen

.PHONY: pxdgen
pxdgen: $(BUILDDIR)
Expand Down
4 changes: 2 additions & 2 deletions buildsystem/codegen.cmake
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2014-2019 the openage authors. See copying.md for legal info.
# Copyright 2014-2025 the openage authors. See copying.md for legal info.

# set CODEGEN_SCU_FILE to the absolute path to SCU file
macro(get_codegen_scu_file)
Expand Down Expand Up @@ -52,7 +52,7 @@ function(codegen_run)
COMMENT "openage.codegen: generating c++ code"
)

add_custom_target(codegen
add_custom_target(cppgen
DEPENDS "${CODEGEN_TIMEFILE}"
)

Expand Down
4 changes: 2 additions & 2 deletions libopenage/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2014-2019 the openage authors. See copying.md for legal info.
# Copyright 2014-2025 the openage authors. See copying.md for legal info.

# main C++ library definitions.
# dependency and source file setup for the resulting library.
Expand All @@ -13,7 +13,7 @@ declare_binary(libopenage openage library allow_no_undefined)
set_target_properties(libopenage PROPERTIES
VERSION 0
AUTOMOC ON
AUTOGEN_TARGET_DEPENDS "codegen"
AUTOGEN_TARGET_DEPENDS "cppgen"
)

##################################################
Expand Down
Loading