GitLab Commit is coming up on August 3-4. Learn how to innovate together using GitLab, the DevOps platform. Register for free: gitlabcommitvirtual2021.com

Commits (2)
......@@ -27,9 +27,9 @@ install-exec-local:
##@if test "$(bindir)" != "$(ROOT)/usr/bin" && test "$(bindir)" != "$(ROOT)/usr/bin/"; then
@$(LN_S) -f gambas$(GAMBAS_VERSION).gambas $(DESTDIR)$(bindir)/gambas$(GAMBAS_VERSION) || true
@if test x"$(XDG_UTILS)" != x; then \
echo "Installing Gambas IDE application icon..."; \
echo "Installing IDE application icon..."; \
xdg-icon-resource install --novendor --context apps --size 256 $(srcdir)/desktop/gambas3.png gambas3; \
echo "Installing Gambas IDE application menu..."; \
echo "Installing IDE application menu..."; \
xdg-desktop-menu install --novendor $(srcdir)/desktop/gambas3.desktop; \
fi
......@@ -37,7 +37,6 @@ install-exec-local:
@$(LN_S) -f gbs$(GAMBAS_VERSION).gambas $(DESTDIR)$(bindir)/gbs$(GAMBAS_VERSION) || true
@$(LN_S) -f gbs$(GAMBAS_VERSION).gambas $(DESTDIR)$(bindir)/gbw$(GAMBAS_VERSION) || true
@if test x"$(XDG_UTILS)" != x; then \
$(INSTALL) -d $(DESTDIR)$(gbdatadir)/icons; \
echo "Registering Gambas script mimetype..."; \
xdg-icon-resource install --context mimetypes --size 256 $(srcdir)/mime/application-x-gambasscript.png application-x-gambasscript; \
xdg-mime install $(srcdir)/mime/application-x-gambasscript.xml; \
......@@ -57,6 +56,7 @@ install-exec-local:
@cp -R $(srcdir)/template/* $(DESTDIR)$(gbdatadir)/template;
uninstall-local:
@echo "Uninstalling the development environment..."
@rm -f $(DESTDIR)$(bindir)/gambas$(GAMBAS_VERSION)
@rm -f $(DESTDIR)$(bindir)/gbs$(GAMBAS_VERSION)
@rm -f $(DESTDIR)$(bindir)/gbw$(GAMBAS_VERSION)
......@@ -70,6 +70,7 @@ uninstall-local:
@rm -rf $(DESTDIR)$(datarootdir)/metainfo/gambas3.appdata.xml
@rm -rf $(DESTDIR)$(datarootdir)/appdata/gambas3.appdata.xml
@rm -rf $(DESTDIR)$(gbdatadir)/template
@rmdir --ignore-fail-on-non-empty $(DESTDIR)$(datarootdir)/metainfo $(DESTDIR)$(datarootdir)/appdata $(DESTDIR)$(gbdatadir)
dist-hook:
@(cd $(distdir)/src; \
......
......@@ -10,15 +10,14 @@ install-exec-local:
ROOT=$DESTDIR; \
fi
@echo "Installing the components..."
@(cd $(srcdir)/src; d=`pwd`; for p in `cat order`; do \
echo "Compiling $$p..."; \
echo "Compiling '$$p' component..."; \
cd $$d/$$p; \
$(DESTDIR)$(bindir)/gbc$(GAMBAS_VERSION) -agt -r $(DESTDIR)$(prefix); \
if test $$? -eq 0; then \
$(DESTDIR)$(bindir)/gba$(GAMBAS_VERSION); \
rm -rf .gambas; \
echo "Installing $$p..."; \
echo "Installing '$$p' component..."; \
rm -f $(DESTDIR)$(gblibdir)/$$p.so $(DESTDIR)$(gblibdir)/$$p.so.* $(DESTDIR)$(gblibdir)/$$p.la; \
$(INSTALL) $$p.gambas $(DESTDIR)$(gblibdir); \
$(INSTALL) .component $(DESTDIR)$(gblibdir)/$$p.component; \
......@@ -35,17 +34,20 @@ install-exec-local:
$(DESTDIR)$(bindir)/gbi$(GAMBAS_VERSION) -r $(DESTDIR)$(prefix) $$p > /dev/null; \
$(DESTDIR)$(bindir)/gbi$(GAMBAS_VERSION) -r $(DESTDIR)$(prefix) > /dev/null; \
else \
echo "|| Unable to compile $$p" >> ../../../warnings.log; \
echo "|| Unable to compile '$$p' component" >> ../../../warnings.log; \
fi \
done; true)
uninstall-local:
@(cd $(srcdir)/src; for p in *; do \
@(cd $(srcdir)/src; for p in gb.*; do \
echo "Uninstalling '$$p' component..."; \
rm -f $(DESTDIR)$(gblibdir)/$$p.gambas; \
rm -f $(DESTDIR)$(gblibdir)/$$p.component; \
rm -f $(DESTDIR)$(gbdatadir)/info/$$p.info; \
rm -f $(DESTDIR)$(gbdatadir)/info/$$p.list; \
rm -rf $(DESTDIR)$(gbdatadir)/control/$$p; \
done)
@rmdir --ignore-fail-on-non-empty $(DESTDIR)$(gbdatadir)/info $(DESTDIR)$(gbdatadir)/control $(DESTDIR)$(gbdatadir) $(DESTDIR)$(gblibdir)
dist-hook:
@(cd $(distdir)/src; rm -rf `find . -name ".gambas" -o -name ".action" -o -name ".lock" -o -name ".xvpics" -o -name "*~" -o -name "*.out" -o -name "*.pot" -o -name "*.gambas" -o -name "core*" -o -name ".kdbg*" -o -name ".svn"`;)
......
' Gambas class file
Public Sub Form_Open()
Workspace1.Image = Image.Load("70a017.png")
End
# Gambas Form File 3.0
{ Form Form
MoveScaled(0,0,64,64)
Arrangement = Arrange.Fill
Margin = True
{ Workspace1 Workspace
MoveScaled(2,5,55,48)
}
}
......@@ -19,7 +19,7 @@ Property Key As String
Property Text As String
Property Separator As Boolean
Property Size As String
Property Settings As String
Property Settings, Layout As String
Private $hForm As FToolBar
......
......@@ -6,7 +6,7 @@ install-data-hook:
@rm -f $(DESTDIR)$(gblibdir)/$(COMPONENT).gambas;
@if test -d $(COMPONENT) && test -e $(COMPONENT)/.project ; then \
echo; \
echo "Compiling the $(COMPONENT) project..."; \
echo "Compiling '$(COMPONENT)' component..."; \
( \
$(DESTDIR)$(bindir)/gbi$(GAMBAS_VERSION) -r $(DESTDIR)$(prefix) $(COMPONENT); \
cd $(COMPONENT); \
......@@ -14,18 +14,19 @@ install-data-hook:
if test $$? -eq 0; then \
$(DESTDIR)$(bindir)/gba$(GAMBAS_VERSION); \
rm -rf .gambas; \
echo "Installing '$(COMPONENT)' component..."; \
$(INSTALL) $(COMPONENT).gambas $(DESTDIR)$(gblibdir); \
else \
echo "|| Unable to compile $(COMPONENT)" >> ../../../warnings.log; \
echo "|| Unable to compile '$(COMPONENT)'" >> ../../../warnings.log; \
fi \
) \
fi
@if test -d data; then \
echo "Installing the $(COMPONENT) extra data files..."; \
echo "Installing '$(COMPONENT)' extra data files..."; \
$(INSTALL) -d $(DESTDIR)$(gbdatadir)/$(COMPONENT); \
$(INSTALL) data/* $(DESTDIR)$(gbdatadir)/$(COMPONENT); \
fi
@echo "Installing the $(COMPONENT) control icons if needed...";
@echo "Installing '$(COMPONENT)' control icons if needed...";
@rm -rf $(DESTDIR)$(gbdatadir)/control/$(COMPONENT);
@if test -d control; then \
$(INSTALL) -d $(DESTDIR)$(gbdatadir)/control; \
......@@ -37,7 +38,7 @@ install-data-hook:
$(INSTALL) -d $(DESTDIR)$(gbdatadir)/control/$(COMPONENT); \
$(INSTALL) $(COMPONENT)/.hidden/control/*.png $(DESTDIR)$(gbdatadir)/control/$(COMPONENT); \
fi
@echo "Creating the information files for $(COMPONENT) component..."
@echo "Creating the information files for '$(COMPONENT)' component..."
@if test "$(EXTRACT_HELP)" = "1"; then \
$(DESTDIR)$(bindir)/gbh$(GAMBAS_VERSION) -r $(DESTDIR)$(prefix) -c $(COMPONENT); \
fi
......@@ -45,14 +46,16 @@ install-data-hook:
@echo
uninstall-hook:
@echo "Uninstalling '$(COMPONENT)' component..."
@if test -d $(COMPONENT); then \
rm -f $(DESTDIR)$(gblibdir)/$(COMPONENT).gambas; \
fi
@rm -rf $(DESTDIR)$(gblibdir)$(COMPONENT).component
@rm -rf $(DESTDIR)$(gbdatadir)/info/$(COMPONENT).info
@rm -rf $(DESTDIR)$(gbdatadir)/info/$(COMPONENT).list
@rm -rf $(DESTDIR)$(gblibdir)/$(COMPONENT).component;
@rm -rf $(DESTDIR)$(gbdatadir)/info/$(COMPONENT).info;
@rm -rf $(DESTDIR)$(gbdatadir)/info/$(COMPONENT).list;
@rm -rf $(DESTDIR)$(gbdatadir)/control/$(COMPONENT);
@rm -rf $(DESTDIR)$(gbdatadir)/$(COMPONENT);
@rmdir --ignore-fail-on-non-empty $(DESTDIR)$(gbdatadir)/info $(DESTDIR)$(gbdatadir)/control $(DESTDIR)$(gbdatadir) $(DESTDIR)$(gblibdir);
dist-hook:
@if test -d $(COMPONENT); then \
......
......@@ -31,29 +31,27 @@ install-exec-local:
echo "[Installing with ROOT=$(ROOT)]"; \
fi
@if test "x$(DESTDIR)" != "x"; then \
echo "[Installing with DESTDIR=$(DESTDIR)]"; \
ROOT=$DESTDIR; \
echo "[Installing with DESTDIR=$(DESTDIR)]"; \
ROOT=$DESTDIR; \
fi
@echo "Making runtime symbolic link"
@echo "Installing runtime symbolic link"
@$(LN_S) -f gbx$(GAMBAS_VERSION) $(DESTDIR)$(bindir)/gbr$(GAMBAS_VERSION) || true
@if test x"$(XDG_UTILS)" != x; then \
echo "Registering Gambas executable mimetype"; \
$(INSTALL) -d $(DESTDIR)$(gbdatadir)/icons; \
cp -f $(srcdir)/mime/application-x-gambas3.png $(DESTDIR)$(gbdatadir)/icons; \
xdg-icon-resource install --novendor --context mimetypes --size 256 $(DESTDIR)$(gbdatadir)/icons/application-x-gambas3.png application-x-gambas3; \
xdg-mime install $(srcdir)/mime/application-x-gambas3.xml; \
echo "Registering Gambas executable mimetype"; \
xdg-icon-resource install --novendor --context mimetypes --size 256 $(srcdir)/mime/application-x-gambas3.png application-x-gambas3; \
xdg-mime install $(srcdir)/mime/application-x-gambas3.xml; \
fi
@echo "Creating the information files for gb component..."
@echo "Installing 'gb' component..."
@$(INSTALL) -d $(DESTDIR)$(gbdatadir)/info
@$(DESTDIR)$(bindir)/gbi$(GAMBAS_VERSION) -r $(DESTDIR)$(prefix) gb
@rm -f $(DESTDIR)$(gblibdir)/lib.gb.la
@rm -f $(DESTDIR)$(gblibdir)/lib.gb.so*
@$(INSTALL) lib/gb.component $(DESTDIR)$(gblibdir)
@echo "Installing the compiler tools..."
@echo "Installing compiler tools..."
@(cd $(srcdir)/tools; d=`pwd`; \
for p in gb*; do \
echo "Compiling $$p..."; cd $$d/$$p; \
......@@ -70,17 +68,25 @@ install-exec-local:
done)
uninstall-local:
@rm -f $(DESTDIR)$(bindir)/gbr$(GAMBAS_VERSION)
@rm -rf $(DESTDIR)$(gblibdir)/info
@if test x"$(XDG_UTILS)" != x; then \
xdg-mime uninstall $(srcdir)/mime/application-x-gambas3.xml; \
xdg-icon-resource uninstall --context mimetypes --size 64 application-x-gambas3; \
fi
@echo "Uninstalling compiler tools..."
@(cd $(srcdir)/tools; for p in gb*; do rm -f $(DESTDIR)$(bindir)/$$p.gambas $(DESTDIR)$(bindir)/$$p; done)
@rm -f $(DESTDIR)$(gblibdir)gb.component
@echo "Uninstalling 'gb' component..."
@rm -f $(DESTDIR)$(gblibdir)/gb.component
@rm -rf $(DESTDIR)$(gbdatadir)/info/gb.info
@rm -rf $(DESTDIR)$(gbdatadir)/info/gb.list
@if test x"$(XDG_UTILS)" != x; then \
echo "Unregistering Gambas executable mimetype"; \
xdg-mime uninstall $(srcdir)/mime/application-x-gambas3.xml; \
xdg-icon-resource uninstall --context mimetypes --size 64 application-x-gambas3; \
fi
@echo "Uninstalling runtime symbolic link"
@rm -f $(DESTDIR)$(bindir)/gbr$(GAMBAS_VERSION)
@rmdir --ignore-fail-on-non-empty $(DESTDIR)$(gbdatadir)/info $(DESTDIR)$(gbdatadir)/control $(DESTDIR)$(gbdatadir)
dist-hook:
@rm -f $(distdir)/trunk_version.h
@(cd $(distdir)/tools; \
......