@@ -48,36 +48,34 @@ packagingFlags = $(ENV_VARS) --excludes "$(packagingExcludes)"
48
48
compileFlags += -I $(vendorDir ) /glfw/include -I $(vendorDir ) /glm -I $(vendorDir ) /freetype/include
49
49
linkFlags += -l render -l window -l resources -l utils
50
50
51
- .PHONY : all vulkan-libs pack-assets
51
+ .PHONY : all pack-assets
52
52
53
- all : $(exampleTilemapApp ) vulkan-libs pack-assets
53
+ all : $(exampleTilemapApp ) pack-assets
54
54
55
55
# Link the object files and create an executable
56
56
$(exampleTilemapApp ) : $(renderLib ) $(exampleTilemapObjects )
57
- $(MKDIR ) $(call platformpth, $(@D ) )
57
+ $(call MKDIR, $(call platformpth,$(@D ) ) )
58
58
$(CXX ) $(exampleTilemapObjects ) -o $(exampleTilemapApp ) $(linkFlags )
59
59
60
60
# Add all rules from dependency files
61
61
-include $(exampleTilemapDepends )
62
62
63
63
# Compile object files to the bin directory
64
64
$(exampleTilemapBinDir ) /% .o : $(exampleTilemapSrcDir ) /% .cpp
65
- $(MKDIR ) $(call platformpth, $(@D ) )
65
+ $(call MKDIR, $(call platformpth,$(@D ) ) )
66
66
$(CXX ) -MMD -MP -c $(compileFlags ) -I $(engineDir ) $< -o $@ $(CXXFLAGS )
67
67
68
68
# Copy assets directory to the build directory and pack them
69
69
pack-assets :
70
- $(MKDIR ) $(call platformpth, $(exampleTilemapBuildDir ) /assets)
70
+ $(call MKDIR, $(call platformpth,$(exampleTilemapBuildDir ) /assets) )
71
71
$(call COPY,$(exampleTilemapSrcDir ) /assets,$(exampleTilemapBuildDir ) /assets,$(RWCARDGLOB ) )
72
- $(MKDIR ) $(call platformpth,$(exampleTilemapBuildDir ) /assets/shaders)
72
+ $(call MKDIR, $(call platformpth,$(exampleTilemapBuildDir ) /assets/shaders) )
73
73
$(call COPY,$(binDir ) /engine/render/build/assets/shaders,$(exampleTilemapBuildDir ) /assets/shaders,$(RWCARDGLOB ) )
74
74
$(packerApp ) $(exampleTilemapBuildDir ) /app.pck $(exampleTilemapBuildDir ) $(exampleTilemapAssets )
75
+ $(RM ) " $( exampleTilemapBuildDir) /assets"
76
+ $(call PACK_LIBS_SCRIPT,$(vendorDir ) /vulkan/lib,$(exampleTilemapBuildDir ) )
75
77
76
78
# Package the built application and all its assets to the output directory
77
79
package :
78
80
$(RM ) " $( outputDir) /$( exampleTilemapOutputName) "
79
- $(call PACKAGE_SCRIPT, $(exampleTilemapOutputName ) , $(call BASENAME, $(exampleTilemapApp ) ) , $(outputDir ) , $(exampleTilemapBuildDir ) , $(packagingFlags ) )
80
-
81
- # Copy Vulkan libraries to the build directory
82
- vulkan-libs :
83
- $(call COPY_VULKAN,$(vendorDir ) ,$(exampleTilemapBuildDir ) )
81
+ $(call PACKAGE_SCRIPT, $(exampleTilemapOutputName ) , $(call BASENAME, $(exampleTilemapApp ) ) , $(outputDir ) , $(exampleTilemapBuildDir ) , $(packagingFlags ) )
0 commit comments