Commit Graph

35 Commits

Author SHA1 Message Date
Leland Lucius c42d188e7b Removed old build system
This was fun!!! Holler if I had too much fun. :-)
2020-05-24 13:18:47 -05:00
Leland Lucius 5900c52492 Fix a small conflict between the CMake and Xcode builds 2020-03-07 18:49:37 -06:00
Leland Lucius e12376b2bd Update build_dist.sh to support standalone mode
You can now use it from the command line like:

   audacity/mac/scripts/build_dist.sh audacity/mac build/bin/Release
2020-02-24 18:48:34 -06:00
Leland Lucius d5b1cbc151 Must always create the Info.plist.h header 2020-02-02 12:21:38 -06:00
Leland Lucius 080b746b66 Revert to using a wrapper when starting Audacity
But, this time use a "C" wrapper as posited by Paul in:

   https://bugzilla.audacityteam.org/show_bug.cgi?id=543#c6

Doing so should bypass the execve()/decontruction issue and
still allow entitlements to work.

This also sets the build system to Legacy so that a "clean"
action will not produce:

   error: Could not delete '...' because it was not created by
          the build system.

And, I'm not sure why the deployment target was 10.9, but it
should have been 10.7.
2020-02-02 02:46:53 -06:00
Leland Lucius 3637f134ac Remove unnecessary SDK handling
And restrict 32-bit builds to <OS 10.15 and <SDK 10.14
2020-01-05 13:54:08 -06:00
Leland Lucius 3f22cbe549 Simplify the wxWidgets build script
Since we're not using a specific SDK any longer, I cleaned
up the script but still left the ability to specify an SDK
if we need to in the future.
2020-01-04 03:14:26 -06:00
Leland Lucius 9e0c1b0bd4 Sign the DMG with the correct cert
It must be signed with a "Developer ID Application" certificate
and not the "Developer ID Installer" certificate.

And make sure to sign the app before copying it to the temporary
DMG folder.
2020-01-04 03:12:26 -06:00
Leland Lucius 0d8c110320 Should build wxWidgets with 10.9 SDK now 2019-12-17 20:04:00 -06:00
Leland Lucius 5fe89c6498 First stab at notarization
The distribution will be signed and notarized during an "install" build
and is handled by mac/scripts/build_dist.sh.

The wrapper scripts, mac/Audacity.sh, is no longer needed as it's function
has been integrated into AudacityApp.cpp/main().

Initially, all "hardened entitlements" have been enabled since we don't
know which ones plug-ins will need.

On Mac and Windows, system sleep will be disabled when recording starts
and re-enabled when it ends.
2019-12-13 23:43:01 -06:00
James Crook fe8739a362 Add modified mac build_dist script.
This is for convenience and does some of the manual steps.
2019-11-15 10:31:23 +00:00
Paul Licameli a84bcfaf5b New configurations and schemes for XCode...
... complete and buildable, but still 32 bit builds.  To be modified.
2018-11-18 13:10:01 -05:00
Paul Licameli 407b7fab4a build_wxwidgets now loops over two architectures; change install path...
... to include architecture, so the 64 bit build doesn't destroy the 32, thus
the results are found in:

/usr/local/i386/lib
/usr/local/x86_64/lib

whereas before all was in /usr/local/lib.

Change the XCode project too, to look for includes and libraries in the new
places.
2018-11-18 13:09:03 -05:00
Paul Licameli fe19c848be Abstract out the architecture in build_wxwidgets script 2018-11-18 12:16:35 -05:00
Paul Licameli 93bf8d1754 Remove mac/scripts/build_wxwidgets2 2018-11-18 12:16:23 -05:00
Paul Licameli 58fa401faf Don't disable accessibility in Mac build of wxWidgets for Audacity 2018-06-19 09:26:00 -04:00
Paul Licameli fc473ba500 Mac: script to build wx 3.1.1 & change xcodeproj to use 10.7 minimum 2018-04-14 13:46:56 -04:00
James Crook e3a2167b7b Mac: Build wx3.1.1 libs for Audacity.
Sets the i386 option and installs where XCode will fetch it from.
2018-04-13 10:11:30 +01:00
Paul Licameli 8b32eea8bb Bug290 (load LAME, FFmpeg from correct place): original fix again...
... That is, put a little shell script in the application bundle, and invoke
it (in Release, though not Debug where it interferes with Xcode debugging)

See commit 07661c186f

The shell nulls the environment variable DYLD_LIBRARY_PATH and then executes
the main program.

This is needed because changes to DYLD_LIBRARY_PATH during the main program's
run fail to affect the loading of dynamic libraries afterward.

We need null in DYLD_LIBRARY_PATH to make absolute paths to libraries take
priority.

More info:

Documentation of workings of the macOS dynamic loader
https://developer.apple.com/library/content/documentation/DeveloperTools/Conceptual/DynamicLibraries/100-Articles/DynamicLibraryUsageGuidelines.html

The same problem and solution is discussed here
https://stackoverflow.com/questions/6713692/problems-with-using-setenv-and-then-making-the-dlopen-call

It is claimed there that Firefox did the same trick with a shell, which I do
not observe in my version, but GIMP 2.8.16 does this, as I can see by examining
package contents

Also note the mention in this commit's comments (where the script was removed
because bug543's fix left it unused), that the script also used to
interfere with signing.  I hope that there will be a way around that.

98186b9317
2017-07-27 13:39:22 -04:00
Steve Daulton 32f3ccd08e Update file name
The current OS for Mac is macOS
2017-07-27 16:06:21 +01:00
James Crook c53e2dbb77 Bug 1597 - Enh: Greater clarity over status of versions needed
- For ALPHA builds we do a check version with the Welcome screen (if welcome screen is enabled).
- A 'Check Online' in the About box provides a new route to check version
- Check Version now passes CommitId and Build Date/Time to identify a version.

To actually close the bug we need the javascript on the server page to put up informative messages.
2017-02-25 23:00:39 +00:00
James Crook 51f91f392a Make get_gitident.sh runnable 2017-01-03 16:06:36 +00:00
James Crook 29a392f675 Script tweaks.
After getting git ident, make sure AboutDialog.cpp rebuilds.
2017-01-03 15:28:42 +00:00
James Crook 0d5cb77e3d Improved support for building release on mac 2016-12-14 19:20:29 +00:00
James Crook 73d5f90578 Lose one level of Audacity
Previously our .app was created under /Audacity.  Now we create it one higher up.
2016-12-12 19:20:46 +00:00
James Crook 964a2e0653 Change Mac script paths to be in-app 2016-12-12 18:48:45 +00:00
Leland Lucius 9dc9348127 Fixes bug #1344 (mac build)
In addition, the Xcode project can now build against the 10.6
or 10.7 SDKs.  All that is needed is to change the SDK version
and the other settings will change automatically.
2016-03-07 00:29:26 -06:00
Leland Lucius 9301b155cf Get past the missing "memory" include file issue (part of bug #1344)
This doesn't provide a complete fix for bug #1344, just gets around the missing "memory" include file portion of it.
2016-03-02 00:05:50 -06:00
Leland Lucius 1e1ae1f88c Fix dist build on OSX
(Thanks Gale...hope it works now.)
2015-09-09 01:27:29 -05:00
Leland Lucius c86c262efa Finally got the install_wxlibs.sh script working properly 2015-09-06 01:49:04 -05:00
Leland Lucius bd1bdd91ef Fix library updates during build 2015-09-04 11:23:02 -05:00
Leland Lucius 6b64548efb Need to create the dest directory if it's not there 2015-07-22 21:57:32 -05:00
Leland Lucius b71a923dbc Try to resolve 1728 error when attaching 2015-07-22 11:50:02 -05:00
Leland Lucius 02d4e71cf1 Fix loader_path and executable_path 2015-07-21 22:54:15 -05:00
Leland Lucius 582ee7b45e Cleanup Mac build and subdirectory 2015-07-21 18:45:35 -05:00