Alon Bar-Lev has uploaded a new change for review. Change subject: packaging: build: allow to control build of gwt components ......................................................................
packaging: build: allow to control build of gwt components Add BUILD_GWT_* flags, update documentation. Change-Id: I147232f57e3d565b8264c45795d48d59d349e0ae Signed-off-by: Alon Bar-Lev <[email protected]> --- M Makefile M README.developer 2 files changed, 42 insertions(+), 12 deletions(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/83/14683/1 diff --git a/Makefile b/Makefile index 2c6eaf3..05a8418 100644 --- a/Makefile +++ b/Makefile @@ -32,13 +32,20 @@ DISPLAY_VERSION=$(PACKAGE_VERSION) BUILD_GWT=1 +BUILD_GWT_USERPORTAL=1 +BUILD_GWT_WEBADMIN=1 BUILD_LOCALES=0 MVN=mvn EXTRA_BUILD_FLAGS= BUILD_FLAGS:= ifneq ($(BUILD_GWT),0) -BUILD_FLAGS:=$(BUILD_FLAGS) -P gwt-admin,gwt-user +ifneq ($(BUILD_GWT_USERPORTAL),0) +BUILD_FLAGS:=$(BUILD_FLAGS) -P gwt-user +endif +ifneq ($(BUILD_GWT_WEBADMIN),0) +BUILD_FLAGS:=$(BUILD_FLAGS) -P gwt-admin +endif endif ifneq ($(BUILD_LOCALES),0) BUILD_FLAGS:=$(BUILD_FLAGS) -P all-langs diff --git a/README.developer b/README.developer index 7a8dcf4..d90140b 100644 --- a/README.developer +++ b/README.developer @@ -68,9 +68,37 @@ $ make clean install-dev PREFIX=$HOME/ovirt-engine -BUILD_FLAGS - By default admin console and user portal components are built. - If not required (2nd build and on), BUILD_FLAGS="" can be specified. +BUILD TARGETS + +clean + Clean project. + +install-dev + Install a development environment at PREFIX. + +BUILD CUSTOMIZATION + +The following Makefile environment variables are available for build +customization: + +PREFIX [/usr/local] + Installation root directory. + +BUILD_GWT [1] + Build GWT. + +BUILD_GWT_USERPORTAL [1] + Build user portal if gwt is enabled. + +BUILD_GWT_WEBADMIN [1] + Build web admin if gwt is enabled. + +BUILD_LOCALES [0] + Build additional locales. + +BUILD_TEST_FLAGS [-D skipTests] + By default, unit tests are disabled, to enable specify + BUILD_TEST_FLAGS="" EXTRA_BUILD_FLAGS_DEV Any maven build flags requires for building. @@ -78,17 +106,12 @@ For example, if your machine is low on memory, use: EXTRA_BUILD_FLAGS_DEV="-Dgwt-plugin.localWorkers=2" -EXTRA_BUILD_FLAGS_DEV_GWT +EXTRA_BUILD_FLAGS_DEV_GWT [-D gwt.userAgent=gecko1_8] By default, only the gecko1_8 support is built, building all permutations is possible by specifying EXTRA_BUILD_FLAGS_DEV_GWT="". -BUILD_TEST_FLAGS - By default, unit tests are disabled, to enable specify - BUILD_TEST_FLAGS="" - -DEV_REBUILD - If non java components where modified, DEV_REBUILD="0" can be - specified to skip java build. +DEV_REBUILD [1] + Disable if only packaging components were modified. SETUP -- To view, visit http://gerrit.ovirt.org/14683 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I147232f57e3d565b8264c45795d48d59d349e0ae Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Alon Bar-Lev <[email protected]> _______________________________________________ Engine-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/engine-patches
