Skip to content

Commit 38f3e51

Browse files
committed
Set macOS builds to use cocoa
Reverted VERSION.txt and changed compilers.sh to build correct version of Lazarus Use x86_64 compiler when building Lazarus Rebased cocoa branch onto latest upstream master Bumped FPC to 3.0.4a and Lazarus to 2.0.2a Reverted FPC to 3.0.4 Fixed "New connection" dialog on macOS
1 parent 4771812 commit 38f3e51

File tree

5 files changed

+9
-6
lines changed

5 files changed

+9
-6
lines changed

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ ifneq ($(findstring $(OS_TARGET),win32,win64),)
311311
LCL_WIDGETSET=win32
312312
endif
313313
ifneq ($(findstring $(OS_TARGET),darwin),)
314-
LCL_WIDGETSET=carbon
314+
LCL_WIDGETSET=cocoa
315315
endif
316316
ifeq ($(DEBUG),)
317317
COMP_OPT=-O3 -g- -CX -XX -Xs -Scgi -l -vewnhibq

Makefile.fpc

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ ifneq ($(findstring $(OS_TARGET),win32,win64),)
3737
LCL_WIDGETSET=win32
3838
endif
3939
ifneq ($(findstring $(OS_TARGET),darwin),)
40-
LCL_WIDGETSET=carbon
40+
LCL_WIDGETSET=cocoa
4141
endif
4242

4343
ifeq ($(DEBUG),)

connoptions.pas

+2
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,9 @@ procedure TConnOptionsForm.cbShowAdvancedClick(Sender: TObject);
220220
txCertPass.Visible:=cbShowAdvanced.Checked;
221221
edCertPass.Visible:=cbShowAdvanced.Checked;
222222
{$ifndef LCLgtk2}
223+
{$ifndef LCLCocoa}
223224
tabConnection.TabVisible:=cbShowAdvanced.Checked;
225+
{$endif LCLCocoa}
224226
{$endif LCLgtk2}
225227
tabProxy.TabVisible:=cbShowAdvanced.Checked;
226228
tabPaths.TabVisible:=cbShowAdvanced.Checked;

setup/macosx/compilers.sh

+3-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
set -x
44

55
fpc="fpc-3.0.4.intel-macosx"
6-
lazarus="lazarus-1.8.2-i686-macosx"
6+
lazarus="lazarus-2.0.2a-i686-macosx"
77

88
if [ -n "${sourceforge_mirror-}" ]; then
99
mirror_string="&use_mirror=${sourceforge_mirror}"
@@ -19,10 +19,11 @@ if [ ! -x "$(command -v fpc 2>&1)" ]; then
1919
fi
2020

2121
if [ ! -x "$(command -v lazbuild 2>&1)" ]; then
22-
wget "https://downloads.sourceforge.net/project/lazarus/Lazarus%20Mac%20OS%20X%20i386/Lazarus%201.8.2/$lazarus.dmg?r=&ts=$(date +%s)${mirror_string-}" -O "$lazarus.dmg"
22+
wget "https://downloads.sourceforge.net/project/lazarus/Lazarus%20Mac%20OS%20X%20i386/Lazarus%202.0.2/$lazarus.dmg?r=&ts=$(date +%s)${mirror_string-}" -O "$lazarus.dmg"
2323
hdiutil attach -quiet "$lazarus.dmg"
2424
pkgpath="$(hdiutil attach "$lazarus.dmg" | command awk "/Apple_HFS/ { print \$3 }")"
2525
sudo installer -pkg "$pkgpath/lazarus.pkg" -target /
2626
hdiutil unmount "$pkgpath"
2727
rm "$lazarus.dmg"
28+
lazbuild --build-ide= --compiler=ppcx64 --cpu=x86_64 --widgetset=cocoa
2829
fi

setup/macosx/create_app_new.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ sed -i.bak "s/'Version %s'/'Version %s Build $build'#13#10'Compiled by: $fpc_ver
2525
lazbuild -B ../../transgui.lpi --lazarusdir=/Developer/lazarus/
2626

2727
# Building Intel version
28-
make -j"$(sysctl -n hw.ncpu)" -C ../.. clean CPU_TARGET=i386 "$lazdir"
29-
make -j"$(sysctl -n hw.ncpu)" -C ../.. CPU_TARGET=i386 "$lazdir"
28+
make -j"$(sysctl -n hw.ncpu)" -C ../.. clean CPU_TARGET=x86_64 "$lazdir"
29+
make -j"$(sysctl -n hw.ncpu)" -C ../.. CPU_TARGET=x86_64 "$lazdir"
3030

3131
if ! [ -e $exename ]; then
3232
echo "$exename does not exist"

0 commit comments

Comments
 (0)