-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e4af943
commit e39f461
Showing
21 changed files
with
330 additions
and
390 deletions.
There are no files selected for viewing
Submodule .makefile
updated
from 07ac6f to 184805
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,12 @@ | ||
################################################### | ||
# Project definition | ||
# | ||
PROJECT = TimedPetriNetEditor | ||
STANDARD = --std=c++14 | ||
BUILD_TYPE = release | ||
PROJECT_NAME := TimedPetriNetEditor | ||
PROJECT_VERSION := 0.4.0 | ||
COMPILATION_MODE := debug | ||
CXX_STANDARD := --std=c++14 | ||
|
||
################################################### | ||
# Select the Dear ImGui backend: RayLib or GLFW3. | ||
# | ||
DEAR_IMGUI_BACKEND ?= RayLib | ||
|
||
################################################### | ||
# Reduce warnings | ||
# | ||
CCFLAGS += -Wno-sign-conversion -Wno-float-equal | ||
CXXFLAGS += -Wno-undef -Wno-switch-enum -Wno-enum-compare | ||
CXXFLAGS += -Wshadow | ||
|
||
################################################### | ||
# Project defines | ||
# | ||
DEFINES += -DDATADIR=\"$(DATADIR):$(abspath $(P))/data/:data/\" | ||
DEAR_IMGUI_BACKEND ?= GLFW3 |
This file was deleted.
Oops, something went wrong.
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,105 @@ | ||
################################################### | ||
# If compiling for HTML5 (Emscripten) then force | ||
# using Raylib backend since GLFW3 is not compilable. | ||
# | ||
ifeq ($(OS),Emscripten) | ||
ifndef EXAEQUOS | ||
ifneq ($(DEAR_IMGUI_BACKEND),GLFW3) | ||
$(warning Force GLFW3 backend for compiling with ExaequOS) | ||
DEAR_IMGUI_BACKEND = GLFW3 | ||
endif | ||
else | ||
ifneq ($(DEAR_IMGUI_BACKEND),RayLib) | ||
$(warning Force RayLib backend for compiling with Emscripten) | ||
DEAR_IMGUI_BACKEND = RayLib | ||
endif | ||
endif | ||
endif | ||
|
||
################################################### | ||
# Dear ImGui backends: GLFW3 | ||
# | ||
ifeq ($(DEAR_IMGUI_BACKEND),GLFW3) | ||
INCLUDES += $(P)/src/Editor/DearImGui/Backends/GLFW3 | ||
GUI_FILES += $(P)/src/Editor/DearImGui/Backends/GLFW3/Application.cpp | ||
INCLUDES += $(THIRDPART_DIR)/imgui/backends/ | ||
GUI_FILES += $(THIRDPART_DIR)/imgui/backends/imgui_impl_glfw.cpp | ||
GUI_FILES += $(THIRDPART_DIR)/imgui/backends/imgui_impl_opengl3.cpp | ||
ifeq ($(OS),Linux) | ||
# OpenGL, GLEW, GLFW3 | ||
LINKER_FLAGS += -lGL | ||
PKG_LIBS += --static glfw3 | ||
else ifeq ($(OS),Darwin) | ||
# OpenGL, GLEW, GLFW3 | ||
INCLUDES += -I/usr/local/include -I/opt/local/include | ||
LINKER_FLAGS += -framework OpenGL -framework Cocoa | ||
LINKER_FLAGS += -framework IOKit -framework CoreVideo | ||
LINKER_FLAGS += -L/usr/local/lib -L/opt/local/lib | ||
LINKER_FLAGS += -lGLEW -lglfw | ||
else ifeq ($(OS),Emscripten) | ||
ifdef EXAEQUOS | ||
# Wayland, OpenGL, GLEW, GLFW3 for ExaequOS | ||
LINKER_FLAGS += -sMIN_WEBGL_VERSION=2 -sMAX_WEBGL_VERSION=2 -sFULL_ES3 | ||
PKG_LIBS += exa-wayland --static glfw | ||
else | ||
# We tell the linker that the game/library uses GLFW3 | ||
# library internally, it must be linked automatically | ||
# (emscripten provides the implementation) | ||
LINKER_FLAGS += -s USE_GLFW=3 | ||
endif | ||
else | ||
$(error Unknown architecture $(OS) for OpenGL) | ||
endif | ||
USER_CXX_FLAGS += -Wno-old-style-cast -Wno-sign-conversion -Wno-float-equal | ||
USER_CXX_FLAGS += -Wno-conversion | ||
endif | ||
|
||
################################################### | ||
# Dear ImGui backends: Raylib | ||
# | ||
ifeq ($(DEAR_IMGUI_BACKEND),RayLib) | ||
VPATH += $(P)/src/Editor/DearImGui | ||
VPATH += $(P)/src/Editor/DearImGui/Backends/RayLib | ||
INCLUDES += $(P)/src/Editor/DearImGui/Backends/RayLib | ||
GUI_FILES += $(P)/src/Editor/DearImGui/Backends/RayLib/Application.cpp | ||
VPATH += $(THIRDPART_DIR)/rlImGui | ||
INCLUDES += $(THIRDPART_DIR)/rlImGui | ||
GUI_FILES += $(THIRDPART_DIR)/rlImGui/rlImGui.cpp | ||
INCLUDES += $(THIRDPART_DIR)/raylib/src | ||
ifeq ($(OS),Emscripten) | ||
ifdef EXAEQUOS | ||
LINKER_FLAGS += -sMIN_WEBGL_VERSION=2 -sMAX_WEBGL_VERSION=2 -sFULL_ES3 | ||
PKG_LIBS += exa-wayland --static raylib | ||
else | ||
# We tell the linker that the game/library uses GLFW3 | ||
# library internally, it must be linked automatically | ||
# (emscripten provides the implementation) | ||
LINKER_FLAGS += -s USE_GLFW=3 | ||
endif | ||
else | ||
THIRDPART_LIBS += $(THIRDPART_DIR)/raylib/src/$(OS)/libraylib.a | ||
endif | ||
|
||
USER_CXX_FLAGS += -Wno-conversion -Wno-sign-conversion -Wno-float-equal -Wno-old-style-cast | ||
USER_CXX_FLAGS += -Wno-cast-qual -Wno-undef | ||
endif | ||
|
||
# Dear ImGui | ||
INCLUDES += $(THIRDPART_DIR) | ||
INCLUDES += $(THIRDPART_DIR)/imgui | ||
GUI_FILES += $(THIRDPART_DIR)/imgui/imgui_widgets.cpp | ||
GUI_FILES += $(THIRDPART_DIR)/imgui/imgui_draw.cpp | ||
GUI_FILES += $(THIRDPART_DIR)/imgui/imgui_tables.cpp | ||
GUI_FILES += $(THIRDPART_DIR)/imgui/imgui.cpp | ||
GUI_FILES += $(THIRDPART_DIR)/imgui/misc/cpp/imgui_stdlib.cpp | ||
|
||
# Dear ImGui plot | ||
GUI_FILES += $(THIRDPART_DIR)/implot/implot_items.cpp | ||
GUI_FILES += $(THIRDPART_DIR)/implot/implot.cpp | ||
|
||
# Dear ImGui file dialog | ||
GUI_FILES += $(THIRDPART_DIR)/ImGuiFileDialog/ImGuiFileDialog.cpp | ||
USER_CXX_FLAGS += -Wno-unknown-pragmas | ||
|
||
# Petri Editor | ||
GUI_FILES += $(call wildcard,$(P)/src/Editor/DearImGui/*.cpp) |
Oops, something went wrong.