Created
March 12, 2015 19:55
-
-
Save paavohuhtala/a587aecebf27b64b5519 to your computer and use it in GitHub Desktop.
cities makefile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PROJECT := DayNight | |
DIR_SOURCES := ./Source | |
SOURCES := $(shell find $(DIR_SOURCES) -name '*.cs') | |
DIR_BINARY := Bin | |
BINARY_NAME := $(PROJECT).dll | |
BINARY_PATH := $(DIR_BINARY)/$(BINARY_NAME) | |
# Only works on my computer | |
DEPENDENCIES_PREFIX := D:\Program Files (x86)\SteamLibrary\SteamApps\common\Cities_Skylines\Cities_Data\Managed | |
DEPENDENCIES += Assembly-CSharp.dll | |
DEPENDENCIES += ICIties.dll | |
DEPENDENCIES += UnityEngine.dll | |
DEPENDENCIES += ColossalManaged.dll | |
DEPENDENCY_LIST := $(addprefix -r:, $(DEPENDENCIES)) | |
DayNight.dll: $(SOURCES_COMMON) | |
mcs /out:"$(BINARY_PATH)" /target:library /lib:"$(DEPENDENCIES_PREFIX)" $(DEPENDENCY_LIST) $(SOURCES) | |
# Warning: Depends on Windows and %localappdata% | |
DIR_GAME := $(LOCALAPPDATA)/Colossal Order/Cities_Skylines | |
DIR_ADDON := $(DIR_GAME)/Addons/Mods/$(PROJECT) | |
BINARY_INSTALL_PATH := $(DIR_ADDON)/$(BINARY_NAME) | |
install: | |
cp "$(BINARY_PATH)" "$(BINARY_INSTALL_PATH)" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment