Export 0.1.63
[platform/framework/web/web-ui-fw.git] / Makefile
index 6a8a551..acf3e23 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -5,6 +5,7 @@ DEBUG ?= yes
 PROJECT_NAME = tizen-web-ui-fw
 VERSION = 0.1
 VERSION_COMPAT =
+PKG_VERSION = $(shell cat packaging/web-ui-fw.spec | grep Version: | sed -e "s@Version:\s*@@" )
 THEME_NAME = default
 
 PATH := $(CURDIR)/build-tools/bin:$(PATH)
@@ -182,6 +183,7 @@ widgets: init third_party
 
 loader: widgets globalize
        cat 'src/loader/loader.js' >> ${FW_JS}
+       echo '(function($$){$$.tizen.frameworkData.pkgVersion="$(PKG_VERSION)";}(jQuery));' >> ${FW_JS}
 
 
 globalize: widgets