summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmritanshu <a.pandia1@samsung.com>2020-10-08 11:27:32 +0530
committerAmritanshu <a.pandia1@samsung.com>2020-10-08 11:27:32 +0530
commitee676c5982a04f241ceff64544e013c2b396d0cd (patch)
treebabbcf4c57d4f9aab70e3662d760c7f93cade938
parent95274c3cdd201294c5b7f7de7c89cd26fcc4171f (diff)
downloadrecovery-app-ui-tizen_6.0.tar.gz
recovery-app-ui-tizen_6.0.tar.bz2
recovery-app-ui-tizen_6.0.zip
Change-Id: I9784039d057eabbe4d2d955a975a1f8ae03d7df7 Signed-off-by: Amritanshu <a.pandia1@samsung.com>
-rwxr-xr-xBuild/flags.mk59
1 files changed, 35 insertions, 24 deletions
diff --git a/Build/flags.mk b/Build/flags.mk
index dfaffbe..0eb7e41 100755
--- a/Build/flags.mk
+++ b/Build/flags.mk
@@ -1,24 +1,35 @@
-
-DEBUG_OP = -g3 -D_DEBUG
-CPP_DEBUG_OP = -D_DEBUG
-
-OPTIMIZATION_OP = -O0
-CPP_OPTIMIZATION_OP =
-
-COMPILE_FLAGS = $(DEBUG_OP) $(OPTIMIZATION_OP) -Wall -c -fmessage-length=0
-
-CPP_COMPILE_FLAGS = $(CPP_DEBUG_OP) $(CPP_OPTIMIZATION_OP)
-
-LINK_FLAGS =
-
-ifeq ($(STRIP_INFO),off)
-LINK_FLAGS =
-else
-ifeq ($(STRIP_INFO),on)
-LINK_FLAGS = -s
-endif
-endif
-
-AR_FLAGS =
-
-EDC_COMPILE_FLAGS = \ No newline at end of file
+# Add tools flags defines
+
+ifeq ($(strip $(BUILD_CONFIG)),Debug)
+OPTIMIZATION_OP := -O0
+DEBUG_OP := -g3 -D_DEBUG
+CPP_OPTIMIZATION_OP := -O0
+CPP_DEBUG_OP := -g3 -D_DEBUG
+LINK_OP :=
+else
+ifeq ($(strip $(BUILD_CONFIG)),Release)
+OPTIMIZATION_OP := -O3
+DEBUG_OP :=
+CPP_OPTIMIZATION_OP := -O3
+CPP_DEBUG_OP :=
+LINK_OP := -s
+endif
+endif
+
+ifeq ($(STRIP_INFO),off)
+LINK_OP :=
+else
+ifeq ($(STRIP_INFO),on)
+LINK_OP := -s
+endif
+endif
+
+COMPILE_FLAGS = $(DEBUG_OP) $(OPTIMIZATION_OP) -Wall -c -fmessage-length=0
+
+CPP_COMPILE_FLAGS = $(CPP_DEBUG_OP) $(CPP_OPTIMIZATION_OP) -Wall -c -fmessage-length=0 -std=c++11
+
+LINK_FLAGS = -L"$(PROJ_PATH)/lib" -Wl,--no-undefined $(LINK_OP)
+
+AR_FLAGS =
+
+EDC_COMPILE_FLAGS = -id "$(PROJ_PATH)/edje/images" -sd "$(PROJ_PATH)/edje/sounds" -fd "$(PROJ_PATH)/edje/fonts"