OILSPYTHON_DIR = python
endif
+if BUILDEGWEBCLIENT
+OILSWEBCLIENT_DIR = eg2
+endif
+
#------------------------------
# Build EVERGREEN JAVA
#------------------------------
# Take care of which subdirectories to build, and which extra files to include in a distribution.
-SUBDIRS = $(OILSCORE_DIRS) $(OILSWEB_DIR) $(OILSPYTHON_DIR) $(OILSJAVA_DIR)
+SUBDIRS = $(OILSCORE_DIRS) $(OILSWEB_DIR) $(OILSPYTHON_DIR) $(OILSJAVA_DIR) $(OILSWEBCLIENT_DIR)
EXTRA_DIST = @srcdir@/perlmods \
@srcdir@/data \
--- /dev/null
+
+# Install local NodeJS dependencies and compile the Angular app.
+# Note installation (i.e. copying of files) occurs via the web
+# install Makefile.
+
+all-local: node-deps build-web-prod
+
+node-deps:
+ npm install
+
+build-web-prod:
+ ng build --prod
+
+build-web-dev:
+ ng build
+
+test-web:
+ npm run test
+
+clean:
+ rm -rf node_modules
if BUILDILSWEB
OILSWEB_INST = webcore-install offline-install
+if BUILDEGWEBCLIENT
+OILSWEBCLIENT_DIR = js/ui/default/staff
+endif
+
+SUBDIRS = $(OILSWEBCLIENT_DIR)
+
#webcore-install
reports_SCRIPTS = @top_srcdir@/Open-ILS/xul/staff_client/server/admin/adminlib.js
--- /dev/null
+
+# Install local NodeJS dependencies and compile the AngularJS app.
+# Note installation (i.e. copying of files) occurs via the web
+# install Makefile.
+
+all-local: node-deps build-web-prod
+
+node-deps:
+ npm install
+
+build-web-prod:
+ npm run build-prod
+
+build-web-dev:
+ ng run build
+
+test-web:
+ npm run test
+
+clean:
+ rm -rf node_modules
BUILD_ONLY=NO # -b
UPGRADE_PREVIEW=NO # -r
SKIP_I18N=NO # -i
-BUILD_BROWSER_CLIENT=NO # -c
+BUILD_BROWSER_CLIENT=YES # -c
SKIP_XUL=NO # -x
# path to OpenSRF libraries
OSRF_JS_PATH="$OPTARG"
;;
c)
- BUILD_BROWSER_CLIENT=YES
+ BUILD_BROWSER_CLIENT=NO
;;
x)
SKIP_XUL=YES
echo "Prepping server download files"
if [ "$BUILD_BROWSER_CLIENT" == "YES" ]; then
- # AngularJS staff client
- cd ../../../
- echo "Building AngularJS browser staff client"
- cd Open-ILS/web/js/ui/default/staff/
- npm install # fetch build dependencies
- npm run build-prod # copy to build dir and minify JS files
- # npm cache is big and unnecessary in the final build. remove it.
- rm -r node_modules
- cd ../../../../../ # Open-ILS dir
-
- # Angular staff client
- echo "Building Angular browser staff client"
- cd src/eg2
- npm install # fetch build dependencies
- ng build --prod
- # npm cache is big and unnecessary in the final build. remove it.
- rm -r node_modules
- cd ../../../../ # release dir
+ echo "Building AngularJS/Angular Clients"
+ cd ../../../ # back to root of Evergreen
+ ./configure --disable-updates --disable-apache-modules \
+ --disable-reporter --enable-build-web-client
+ make
+ make clean # remove node_modules, .o, .so, etc. files
+ cd ../ # Back to release dir
+
else
echo "Skipping browser client build"
cd ../../../../
AM_CONDITIONAL([BUILDEGPYTHON], [test x$EG_PYTHON_INSTALL = xtrue])
+# build the evergreen browser clients?
+
+AC_ARG_ENABLE([build-web-client],
+[ --enable-build-web-client enables compilation of the Evergreen web client ],
+[case "${enableval}" in
+ yes) EG_BUILD_WEB_CLIENT=true ;;
+ no) EG_BUILD_WEB_CLIENT=false ;;
+ *) AC_MSG_ERROR([please choose another value for --enable-build-web-client (supported values are yes or no)])
+esac],
+[EG_BUILD_WEB_CLIENT=false])
+
+AM_CONDITIONAL([BUILDEGWEBCLIENT], [test x$EG_BUILD_WEB_CLIENT = xtrue])
+
+
#-----------------------------------
# Check for dependencies
#-----------------------------------
Open-ILS/src/c-apps/Makefile
Open-ILS/src/c-apps/tests/Makefile
Open-ILS/src/extras/Makefile
+ Open-ILS/web/js/ui/default/staff/Makefile
+ Open-ILS/src/eg2/Makefile
Open-ILS/src/java/Makefile
Open-ILS/src/python/Makefile])
fi
else
AC_MSG_RESULT([Evergreen Staff Client: no])
fi
+ if test "$EG_BUILD_WEB_CLIENT" = "true" ; then
+AC_MSG_RESULT([Compile Browser Client: yes])
+ else
+AC_MSG_RESULT([Compile Browser Client: no])
+ fi
if test "$EG_PYTHON_INSTALL" = "true" ; then
AC_MSG_RESULT([Evergreen Python Components: yes])
else