Commit graph

146 commits

Author SHA1 Message Date
gambas
6565b5e131 Try again to support both webkit2gtk 4.0 and 4.1.
[GB.GTK3]
* BUG: Try again to support both webkit2gtk 4.0 and 4.1.
2021-10-08 16:39:20 +02:00
Laurent Carlier
82fbda28e8
Detect git/svn version with a macro instead of creating a header file 2021-03-31 09:26:49 +02:00
gambas
744f215e90 Use gcc option '-O2' instead of '-Os' by default, and add detection of 'aarch64' architecture.
[CONFIGURATION]
* OPT: Use gcc option '-O2' instead of '-Os' by default.
* NEW: Add detection of 'aarch64' architecture.
2020-11-28 20:43:54 +01:00
gambas
f5a806e2c0 Correctly disable 'gb.pdf' component if pkg-config fails.
[GB.PDF]
* BUG: Correctly disable 'gb.pdf' component if pkg-config fails.
2020-06-14 00:49:41 +02:00
Benoît Minisini
b7a9af45c6 Merge branch 'flags' into 'master'
Do not reset CFLAGS or CXXFLAGS

See merge request gambas/gambas!50
2019-02-15 15:07:14 +00:00
gambas
112eb14529 Fix a typo with 'libinotify' in 'acinclude.m4'.
[CONFIGURATION]
* BUG: Fix a typo with 'libinotify' in 'acinclude.m4'.
2018-11-24 19:57:12 +01:00
gambas
a8bd754627 Fix optional inotify library detection.
[CONFIGURATION]
* BUG: Fix optional inotify library detection.
2018-11-21 01:49:12 +01:00
gambas
bd8a5fc56e Optionally link to libnotify on non-Linux systems.
[CONFIGURATION]
* BUG: Optionally link to libnotify on non-Linux systems.
2018-11-21 00:11:42 +01:00
gambas
3e7d502bf0 Correctly detect PowerPC64 systems.
[CONFIGURATION]
* BUG: Correctly detect PowerPC64 systems.
2018-11-20 23:10:45 +01:00
bgermann
ee0b38be06 Do not reset CFLAGS or CXXFLAGS
Do not reset CFLAGS or CXXFLAGS so one can overwrite them.
2018-10-27 14:56:13 +02:00
gambas
efd0a26dea Really take into account configure disable flags!
[CONFIGURATION]
* BUG: Really take into account configure disable flags!
2018-10-01 17:18:53 +02:00
gambas
5c5eede209 Now configure should really fail only if a component is actually disabled.
[CONFIGURATION]
* BUG: Now configure should really fail only if a component is actually disabled.
2018-10-01 14:00:08 +02:00
gambas
f4b2bada0c Now configure should fail only if a component is actually disabled, not just because a library search fails.
[CONFIGURATION]
* BUG: Now configure should fail only if a component is actually disabled, not just because a library search fails.
2018-10-01 11:27:04 +02:00
gambas
5d1d758dd6 Move some macro calls to fix autoconf warnings.
[CONFIGURATION]
* BUG: Move some macro calls to fix autoconf warnings.
2018-10-01 10:55:43 +02:00
Benoît Minisini
e0ae589963 Merge branch 'cpp11test' into 'master'
Fix test of '-std=c++11' compilation flag

See merge request gambas/gambas!41
2018-09-29 09:34:53 +00:00
Benoît Minisini
0c67fc086a Merge branch 'alpine' into 'master'
Add musl-based alpine to CI

See merge request gambas/gambas!40
2018-09-29 09:19:44 +00:00
gambas
aa6b7825d8 Do not disable 'gb.crypt' if libcrypt is not found. Let's suppose it is located in the C system library, as on some systems based on musl and busybox.
[CONFIGURATION]
* NEW: Fix some messages

[GB.CRYPT]
* NEW: Do not disable the component if libcrypt is not found. Let's suppose it is located in the C system library, as on some systems.
2018-09-29 04:40:24 +02:00
gambas
a934f5c8bb If a component source directory includes more than one component, and if one of these components is disabled, the other keep being enabled.
[CONFIGURATION]
* BUG: If a component source directory includes more than one component, and if one of these components is disabled, the other keep being enabled.
2018-09-29 04:12:35 +02:00
bgermann
c809886f7b Fix test of '-std=c++11' compilation flag 2018-09-25 19:20:39 +02:00
bgermann
b417246ae2 Add musl-based alpine to CI 2018-09-15 23:52:45 +02:00
bgermann
828ef7531d Remove unnecessary freebsd case 2018-09-15 21:01:17 +02:00
bgermann
c77865b99c Merge two flag definition cases 2018-09-11 17:45:59 +02:00
gambas
a24dc9807f Fix test of '-std=c++11' compilation flag.
[CONFIGURATION]
* BUG: Fix test of '-std=c++11' compilation flag.
2018-09-01 20:21:27 +02:00
gambas
d3a145655a Fix compilation of gb.pdf on old gcc, by checking if the '-std=c++11' flag is available.
[INTERPRETER]
* NEW: Write the name of optional libraries in the warning message displayed when not found.

[GB.PDF]
* BUG: Fix compilation of gb.pdf on old gcc, by checking if the '-std=c++11' flag is available.
2018-09-01 20:05:44 +02:00
Laurent Carlier
a5a117fd33 Add a way to track configuration failures with CI
Disable it for main as it's expected.

=> GAMBAS_CONFIG_FAILURE=1 ./configure
.....
checking for gb.db.postgresql headers... no
configure: WARNING: Unable to find file: postgres.h
configure: WARNING: Unable to find file: pg_type.h
checking for gb.db.postgresql libraries... /usr/lib64/
configure: error: Failed to configure gb.db.postgresql
configure: error: ./configure failed for gb.db.postgresql
2018-06-12 16:27:31 +02:00
gambas
d552008415 Add a flag for enabling link time optimization, and disable it by default.
[CONFIGURATION]
* NEW: Add a flag for enabling link time optimization, and disable it by default.
2018-05-10 09:13:15 +02:00
gambas
14614f4e67 Check if the "-flto" link time optimzation flag is available.
[CONFIGURATION]
* BUG: Check if the "-flto" link time optimzation flag is available.
2018-05-08 18:44:31 +02:00
gambas
55c02a9642 Put all version compilation constants in 'version.m4'.
[CONFIGURATION]
* NEW: Put all version compilation constants in 'version.m4'.
2018-01-14 23:25:11 +01:00
Benoît Minisini
d42a49b57d [CONFIGURATION]
* NEW: Switch version to 3.10.90.

[GB.DB]
* NEW: Connection.TimeZone is new property that will allow to define the default timezone of dates stored in the database we are connected to. Not implemented yet.


git-svn-id: svn://localhost/gambas/trunk@8168 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2017-07-24 18:53:33 +00:00
Benoît Minisini
cbfcb9fb00 [INTERPRETER]
* BUG: Check if linking with 'librt' is needed to get monotonic clock.


git-svn-id: svn://localhost/gambas/trunk@8139 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2017-05-26 12:26:39 +00:00
Benoît Minisini
cfacf387ec [CONFIGURATION]
* NEW: Add a autoconf check for monotonic clock.

[INTERPRETER]
* BUG: Use a monotonic clock (if possible) to implement the WAIT instruction.


git-svn-id: svn://localhost/gambas/trunk@8138 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2017-05-26 00:20:40 +00:00
Benoît Minisini
45a12f36a8 [CONFIGURATION]
* NEW: Switch version to 3.9.90.


git-svn-id: svn://localhost/gambas/trunk@7859 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-08-20 16:23:39 +00:00
Benoît Minisini
f57d3273fe [CONFIGURATION]
* NEW: Support for Haiku operating system.
* BUG: Add explicit dependencies on 'x11' and 'gl' pkg-config packages.

[GB.FORM]
* NEW: MaskBox: Use unicode large spaces instead of ASCII smal spaces.

[GB.UTIL.WEB]
* BUG: Fix collection generation in JSON.Encode().

[GB.WEB.FORM]
* NEW: WebImage: Add the Border property.
* NEW: WebImage: Image property now can be an absolute path.
* BUG: WebButton: Workaround Firefox not supporting flex on buttons.
* BUG: WebComboBox: Enabled property is now taken into account.
* BUG: WebUploadArea: The file name now keeps the uploaded file extension.


git-svn-id: svn://localhost/gambas/trunk@7786 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-05-24 16:18:48 +00:00
Benoît Minisini
c1eb854159 [CONFIGURATION]
* NEW: Detect the fstatat() system function.

[INTERPRETER]
* OPT: Dir() and RDir() are now 10-30% faster by using fstatat() and assuming that directories with just two hard links have no child directories (each sub-directory having one hard-link to its parent directory through the ".." entry).


git-svn-id: svn://localhost/gambas/trunk@7610 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-02-21 15:48:40 +00:00
Benoît Minisini
5dbb6e7cc4 [CONFIGURATION]
* NEW: Remove "-march=native" compilation flag to see if it prevent arm gcc from crashing.


git-svn-id: svn://localhost/gambas/trunk@7554 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-01-05 04:03:36 +00:00
Benoît Minisini
b9b46f3873 [CONFIGURATION]
* NEW: Add "-march=native" to the compilation flags. Maybe it could speed up then interpretrer a bit?

[DEVELOPMENT ENVIRONMENT]
* NEW: Connection editor: Update layout.
* NEW: Form editor: Clicking on the master selection selects the parent control.

[WEB SITE MAKER]
* NEW: Update for 3.8.4 version.

[GB.DB]
* BUG: Default values are now correctly taken into account by database templates.

[GB.DB.SQLITE3]
* BUG: Fix a possible uninitialized allocation of columns names.

[GB.UTIL]
* NEW: Class.Stat() class name argument now allows "../" in the name to search for classes in parent components.

[GB.WEB]
* NEW: Request.Language returns the main language requested by the HTTP client. This value can be directly assigned to System.Language.
* NEW: Session.Size returns the size of the session file in bytes.

[GB.WEB.FORM]
* NEW: Automatic management of favicon. The application favicon must be a file named "favicon.png" in the ".public" directory.
* NEW: The Align class for alignment constants.
* NEW: WebControl: Any control can raise a Message event now.
* NEW: The Message boxes now raise the "Message" event of the WebControl that opened the message box. If the event is not handled, then the event is raised by the WebForm of the control.
* NEW: The Select class for selection mode constants.
* BUG: WebComboBox: Define the default event.
* NEW: WebContainer: Indent is a new property that allows to add a left padding to the container.
* NEW: WebContainer: Extra children (those created after initialization) are now recreated with their event observer and event name, provided that the event observer is another WebControl.
* NEW: WebContainer: DeleteChildren() is a new method that deletes all container children.
* NEW: WebExpander: New container that implements an expander.
* NEW: WebForm: Teh application language now automatically switches to the language requested by the HTTP client.
* BUG: WebForm: Show() and ShowModal() method now raise the Open event.
* NEW: WebLabel: Add the Border property to the property list.
* NEW: WebLabel: Newlines in label text are automatically replaced by "<br>".
* NEW: WebTable: New control that implements an HTML table with automatic scrollbars. It gets its data through a Data event, and only displays the first hundred elements by default. A button allows to increase the number of displayed elements.
  The 'Mode' property allows to define the selection mode. When rows are selectable, an extra columns is added, with radion buttons on single selection mode, and checkboxes on multiple selection mode. The indexes of selected rows is returned by
  the 'Selection' property.
* BUG: Many fixes in the default stylesheet.


git-svn-id: svn://localhost/gambas/trunk@7536 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-12-27 18:16:32 +00:00
Benoît Minisini
e37683ccf5 [CONFIGURATION]
* NEW: Switch to 3.8.90 version.


git-svn-id: svn://localhost/gambas/trunk@7238 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-08-25 13:24:08 +00:00
Benoît Minisini
8f0de5ec88 [CONFIGURATION]
* NEW: Switch to 3.8 version.


git-svn-id: svn://localhost/gambas/trunk@7194 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-07-30 16:27:04 +00:00
Benoît Minisini
edd0eb77f1 [CONFIGURATION]
* NEW: Switch to version 3.7.90.


git-svn-id: svn://localhost/gambas/trunk@6988 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-03-15 04:28:57 +00:00
Benoît Minisini
c81e550df2 [CONFIGURATION]
* BUG: Do not use the AC_LIBLTDL_CONVENIENCE macro. It is deprecated and
  now useless.

[DEVELOPMENT ENVIRONMENT]
* OPT: Farm client: Load the SoftwareBox information only when it is 
  actually displayed.
  
[WEBSITE MAKER]
* NEW: Switch to 3.7.0 version.

[GB.FORM]
* NEW: Completion: The poup list now follows its top-level window when it 
  moves.


git-svn-id: svn://localhost/gambas/trunk@6987 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-03-14 20:10:05 +00:00
Benoît Minisini
885d980225 [CONFIGURATION]
* NEW: Switch to 3.7 version.

[DEVELOPMENT ENVIRONMENT]
* NEW: Draw the version number the same size as the application title in 
  the welcome and about dialogs.


git-svn-id: svn://localhost/gambas/trunk@6949 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-03-05 21:01:33 +00:00
Benoît Minisini
d89262600b [INTERPRETER]
* BUG: Force the interpreter to link with the system thread library, 
  whatever the global linker configuration is.


git-svn-id: svn://localhost/gambas/trunk@6916 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-02-26 22:44:20 +00:00
Benoît Minisini
cb63d9ef1f [CONFIGURATION]
* NEW: Support for GNU/Hurd.

[INTERPRETER]
* NEW: Support for GNU/Hurd.

[GB.NET]
* NEW: Support for GNU/Hurd.


git-svn-id: svn://localhost/gambas/trunk@6847 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-01-21 00:52:56 +00:00
Benoît Minisini
4faa9876bf [DEVELOPMENT ENVIRONMENT]
* BUG: Fix initial focus of welcome dialog.

[INTERPRETER]
* BUG: Release standard i/o File objects before cleaning up the classes, to 
  avoid an incorrect "circular reference" message.

[GB.GTK]
* NEW: Link to the pthread library explicitly.
* NEW: WAIT inside a keybord handler does not raise an error anymore. It 
  just print a warning message and does nothing.

[GB.GTK3]
* NEW: Link to the pthread library explicitly.
* NEW: WAIT inside a keybord handler does not raise an error anymore. It 
  just print a warning message and does nothing.

[GB.UTIL]
* NEW: Date.EasterDay returns the Easter day of a specific year.

[GB.QT4]
* NEW: Link to the pthread library explicitly.
* NEW: WAIT inside a keybord handler does not raise an error anymore. It 
  just print a warning message and does nothing.

[GB.QT4.EXT]
* NEW: Editor.Font property now can take any font in the IDE.


git-svn-id: svn://localhost/gambas/trunk@6754 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-12-20 15:24:00 +00:00
Benoît Minisini
04fc7adb58 [CONFIGURATION]
* NEW: Update version to 3.6.90.

[DEVELOPMENT ENVIRONMENT]
* NEW: Initial version of project publishing dialog. Not useable at the 
  moment.

[FARM SERVER]
* NEW: Initial version of the Gambas farm server. Not finished.

[GB.FORM]
* BUG: DirChooser: Correctly update the toolbar according to the file view
  visibility.
* BUG: Setting Spinner.Enabled to FALSE correctly stops the animation now.
* NEW: New stock icon named "download".

[GB.FORM.STOCK]
* NEW: New default icons for "download" stock icon.


git-svn-id: svn://localhost/gambas/trunk@6566 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-10-19 22:16:27 +00:00
Benoît Minisini
739f02cd40 [DEVELOPMENT ENVIRONMENT]
* BUG: Make editor message tooltip more readable, espacially with drak 
  themes.

[WIKI CGI SCRIPT]
* BUG: Fix detection of creatable classes.
* NEW: Automatically add function arguments in the initial text when 
  creating a new symbol documentation page.

[GB.JIT]
* BUG: Fix support of LLVM_CONFIG environment variable that defines the 
  absolute path of the 'llvm-config' program.


git-svn-id: svn://localhost/gambas/trunk@6544 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-10-13 15:03:06 +00:00
Benoît Minisini
97913aa329 [CONFIGURATION]
* NEW: Switch to version 3.6.0.

[DEVELOPMENT ENVIRONMENT]
* BUG: Correctly reset position buttons when a project is loaded.
* BUG: Text editor: Fix word delimiter characters for automatic completion.

[GB.GUI.BASE]
* BUG: ScrollArea: Prevent a possible crash.

[GB.NET.SMTP]
* BUG: Remove a debugging message.


git-svn-id: svn://localhost/gambas/trunk@6518 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-10-02 21:38:50 +00:00
Nigel Gerrard
e0b9fc1eac [CONFIGURATION]
* BUG: Set Cygwin Shared Library Extension to dll

[GB.JIT]
* NEW: Add conditional defines for Cygwin to allow compile:
  Use finite in place of _finite, __isnand in place of __isnan
  and __isinfd in place of __isinf.

* NEW: Remove jit_gambas_pass_dummy.cpp as this is no longer
  required to compile with later versions of llvm. Also fixes
  issue with Cygwin compile.

[GB.NET]
* NEW: Redefine TIOCOUTQ for Cygwin

[GB.SDL.SOUND]
* NEW: -lSDL needed for Cygwin linker

[INTERPRETER]
* NEW: Redefine FIONREAD for Cygwin

* NEW: Cygwin needs <strings.h> to avoid compiler issues when
  redefining strcasecmp etc.
 
[DEVELOPMENT ENVIRONMENT]
* NEW: Make the environment Cygwin aware



git-svn-id: svn://localhost/gambas/trunk@6435 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-08-28 13:50:09 +00:00
Benoît Minisini
91c4402592 [CONFIGURATION]
* NEW: Support of GNU/kFreeBSD systems.

[DEVELOPMENT ENVIRONMENT]
* BUG: Fix a typo in english tips.

[INFORMER]
* NEW: Support of kFreeBSD.

[GB.DB.POSTGRESL]
* NEW: Check more directories when searching for libraries, so that it 
  works on debian systems.

[GB.V4L]
* NEW: Support of kFreeBSD.


git-svn-id: svn://localhost/gambas/trunk@6356 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-06-30 22:22:11 +00:00
Benoît Minisini
fb1b6a762a [CONFIGURATION]
* NEW: Add an automake init flag to prevent warnings with recent versions 
  of automake.

[DEVELOPMENT ENVIRONMENT]
* NEW: A Gambas project directory is now identify by a ".project" file that
  actually begins with the expected header.

[GB.DESKTOP.X11]
* NEW: X11Systray is a new static class that implements a system tray 
  inside an already existing DrawingArea of your project. Beware, this it 
  the initial experimental version. That class is based on the 'stalone'
  project source code.

[GB.GTK]
* BUG: Default tray icon is correctly visible now.

[GB.GTK3]
* BUG: Default tray icon is correctly visible now.

[GB.QT4]
* BUG: Tray icons are now scaled, like with GTK+.


git-svn-id: svn://localhost/gambas/trunk@6299 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-06-02 00:39:44 +00:00