Skip to content

Commit

Permalink
[Paladin] Include the new source files in the Visual Studio props stu…
Browse files Browse the repository at this point in the history
…ff properly
  • Loading branch information
mserrano committed Feb 12, 2018
1 parent f3994d1 commit ab51ede
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
4 changes: 3 additions & 1 deletion source_files/QT_engine.pri
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
HEADERS += engine/util/utf8/core.h
HEADERS += engine/util/utf8/checked.h
HEADERS += engine/util/utf8.h
HEADERS += engine/class_modules/paladin/sc_paladin.hpp
SOURCES += engine/util/xml.cpp
SOURCES += engine/util/str.cpp
SOURCES += engine/util/stopwatch.cpp
Expand Down Expand Up @@ -91,7 +92,8 @@
SOURCES += engine/class_modules/sc_shaman.cpp
SOURCES += engine/class_modules/sc_rogue.cpp
SOURCES += engine/class_modules/sc_priest.cpp
SOURCES += engine/class_modules/sc_paladin.cpp
SOURCES += engine/class_modules/paladin/sc_paladin.cpp
SOURCES += engine/class_modules/paladin/sc_paladin_retribution.cpp
SOURCES += engine/class_modules/sc_monk.cpp
SOURCES += engine/class_modules/sc_mage.cpp
SOURCES += engine/class_modules/sc_hunter.cpp
Expand Down
5 changes: 3 additions & 2 deletions source_files/VS_engine.props
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ To change the list of source files, update the QT_ files and run synchronize.py
<ClInclude Include="..\engine\util\utf8\core.h" />
<ClInclude Include="..\engine\util\utf8\checked.h" />
<ClInclude Include="..\engine\util\utf8.h" />
<ClInclude Include="..\engine\class_modules\paladin\sc_paladin.hpp" />
<ClCompile Include="..\engine\util\xml.cpp">

</ClCompile>
Expand Down Expand Up @@ -211,7 +212,7 @@ To change the list of source files, update the QT_ files and run synchronize.py

</ClCompile>
<ClCompile Include="..\engine\class_modules\paladin\sc_paladin_retribution.cpp">

</ClCompile>
<ClCompile Include="..\engine\class_modules\sc_monk.cpp">

Expand Down Expand Up @@ -265,4 +266,4 @@ To change the list of source files, update the QT_ files and run synchronize.py

</ClCompile>
</ItemGroup>
</Project>
</Project>
2 changes: 1 addition & 1 deletion source_files/engine_make
Original file line number Diff line number Diff line change
Expand Up @@ -77,4 +77,4 @@ SRC += \
action$(PATHSEP)sc_attack.cpp \
action$(PATHSEP)sc_action_state.cpp \
action$(PATHSEP)sc_action.cpp \
sc_util.cpp \
sc_util.cpp \
4 changes: 2 additions & 2 deletions source_files/synchronize.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ def create_vs_str(entries, gui=False):
return prepare

def create_engine_cmake_str(engine):
engine_source = [*engine]
engine_source = list(engine)
engine_cpp_files = [fullpath for file_type, fullpath, dirname, corename, ending in engine_source if file_type == "SOURCES"]
engine_cpp_files = [pathlib.Path(f) for f in engine_cpp_files]
engine_cpp_files = ["/".join(p.parts[1:]) for p in engine_cpp_files]
Expand All @@ -188,7 +188,7 @@ def create_engine_cmake_str(engine):
return output

def create_gui_cmake_str(gui):
engine_source = [*gui]
engine_source = list(gui)
engine_cpp_files = [fullpath for file_type, fullpath, dirname, corename, ending in engine_source if file_type == "SOURCES" or file_type == "HEADERS"]
engine_cpp_files = [pathlib.Path(f) for f in engine_cpp_files]
engine_cpp_files = ["/".join(p.parts[1:]) for p in engine_cpp_files]
Expand Down

0 comments on commit ab51ede

Please sign in to comment.