Skip to content
This repository was archived by the owner on Feb 4, 2026. It is now read-only.

Commit 71ba4e5

Browse files
authored
Merge pull request #47 from calgaryscientific/PWEB-7507
PWEB-7507 - Initial pass on a command line build script for ScribbleQt and a tomcat plugin
2 parents a06b044 + 60ec6a7 commit 71ba4e5

2 files changed

Lines changed: 106 additions & 0 deletions

File tree

Build-Linux.sh

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# check for prerequisites
2+
3+
if [[ -z "${PUREWEB_HOME}" ]]; then
4+
echo "PUREWEB_HOME environment variable is not set"
5+
exit 1
6+
else
7+
echo "PUREWEB_HOME=${PUREWEB_HOME}"
8+
fi
9+
10+
if [[ -z "${PUREWEB_LIBS}" ]]; then
11+
echo "PUREWEB_LIBS environment variable is not set"
12+
exit 1
13+
else
14+
echo "PUREWEB_LIBS=${PUREWEB_LIBS}"
15+
fi
16+
17+
echo "Checking qmake installed"
18+
qmake-qt5 --version &> /dev/null
19+
if [ $? != 0 ]; then
20+
echo "qmake-qt5 is not installed, exiting build"
21+
exit 1
22+
fi
23+
24+
# Deploy the Scribble HTML5 sample to Tomcat
25+
echo "Building Scribble Qt"
26+
cd ScribbleAppQt
27+
if [ ! -d "debug" ]; then
28+
mkdir debug
29+
fi
30+
31+
if [ ! -d "debug/.obj" ]; then
32+
mkdir debug/.obj
33+
fi
34+
35+
if [ ! -d "debug/.moc" ]; then
36+
mkdir debug/.moc
37+
fi
38+
39+
qmake-qt5 -makefile scribble_solo.pro
40+
make
41+
if [ ! -d "${PUREWEB_HOME}/apps" ]; then
42+
mkdir "${PUREWEB_HOME}/apps"
43+
fi
44+
if [ ! -d "${PUREWEB_HOME}/apps/ScribbleAppQt" ]; then
45+
mkdir "${PUREWEB_HOME}/apps/ScribbleAppQt"
46+
fi
47+
cp debug/scribble ${PUREWEB_HOME}/apps/ScribbleAppQt
48+
cp ${PUREWEB_LIBS}/C++/lib/*.so ${PUREWEB_HOME}/apps/ScribbleAppQt
49+
50+
cd ..
51+
52+
echo "Samples deployed to Tomcat"
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
3+
<beans xmlns="http://www.springframework.org/schema/beans"
4+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5+
xsi:schemaLocation="http://www.springframework.org/schema/beans
6+
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">
7+
8+
<bean id="licenseManager" class="pureweb.process.DefaultLicenseManager"/>
9+
10+
<bean class="pureweb.process.SocketProcessFactory">
11+
<property name="useFullDuplex" value="true"/>
12+
<property name="connectionBarrier" ref="applicationConnectionBarrier"/>
13+
<property name="applicationRegistry" ref="applicationRegistry" />
14+
<property name="licenseManager" ref="licenseManager"/>
15+
<property name="application" value="ScribbleAppQt"/>
16+
<property name="description" value="ScribbleApp Qt"/>
17+
<property name="directory" value="${PUREWEB_HOME}/apps/ScribbleAppQt/"/>
18+
<property name="executable" value="${PUREWEB_HOME}/apps/ScribbleAppQt/scribble"/>
19+
<property name="arguments">
20+
<list>
21+
<value>/PureWeb</value>
22+
</list>
23+
</property>
24+
<property name="environment">
25+
<map>
26+
<entry key="LD_LIBRARY_PATH" value="${LD_LIBRARY_PATH}:${PUREWEB_HOME}/apps/ScribbleAppQt/"/>
27+
</map>
28+
</property>
29+
</bean>
30+
<bean class="pureweb.cluster.SupportedClients" scope="prototype" id="supportedClients">
31+
<property name="supportedClients" ref="supportedClientsMap"/>
32+
<property name="application" value="ScribbleAppQt"/>
33+
<property name="clientMap">
34+
<map>
35+
<entry key="html5" value="ScribbleApp.html"/>
36+
<entry key="ios" value=""/>
37+
</map>
38+
</property>
39+
</bean>
40+
41+
<!-- Adds the link under the Apps section of the PureWeb Web Application -->
42+
<bean class="pureweb.process.PluginLink">
43+
<property name="registry" ref="pluginLinkRegistry"/>
44+
<property name="supportedClients" ref="supportedClients"/>
45+
<property name="name" value="Scribble App Qt"/>
46+
<property name="description" value="A Qt implementation of Scribble App"/>
47+
48+
<!-- Optional. If specified the link generated will be as below. Otherwise all client links will be generated dynamically. -->
49+
<!-- <property name="path" value="/pureweb/view?name=ScribbleAppQt&amp;client=html5"/> -->
50+
51+
<property name="image" value="/themes/pureweb/default.png"/>
52+
<property name="role" value="ROLE_PUREWEB_USER"/>
53+
</bean>
54+
</beans>

0 commit comments

Comments
 (0)