Skip to content

Commit

Permalink
Modify build system files to use PlatWXcocoa.mm
Browse files Browse the repository at this point in the history
A recent commit added the file src/stc/PlatWXcocoa.mm needed for wxSTC
with the cocoa port. This commit modifies the build system files to
use this new file when it is needed.
  • Loading branch information
NewPagodi committed Mar 20, 2019
1 parent 66d340a commit f2e1aa4
Show file tree
Hide file tree
Showing 6 changed files with 42 additions and 9 deletions.
21 changes: 19 additions & 2 deletions build/bakefiles/files.bkl
Original file line number Diff line number Diff line change
Expand Up @@ -3459,16 +3459,23 @@ IMPORTANT: please read docs/tech/tn0016.txt before modifying this file!
<!-- wxSTC -->
<!-- ====================================================================== -->

<set var="STC_SRC" hints="files">
<set var="STC_CMN_SRC" hints="files">
src/stc/stc.cpp
src/stc/PlatWX.cpp
src/stc/ScintillaWX.cpp
</set>

<set var="STC_HDR" hints="files">
<set var="STC_CMN_HDR" hints="files">
wx/stc/stc.h
</set>

<set var="STC_OSX_COCOA_SRC" hints="files">
src/stc/PlatWXcocoa.mm
</set>

<set var="STC_OSX_COCOA_HDR" hints="files">
</set>

<!-- ====================================================================== -->
<!-- Define sources for specific libraries: -->
<!-- ====================================================================== -->
Expand Down Expand Up @@ -3650,6 +3657,16 @@ IMPORTANT: please read docs/tech/tn0016.txt before modifying this file!
<set var="MEDIA_SRC">$(MEDIA_CMN_SRC) $(MEDIA_PLATFORM_SRC)</set>
<set var="MEDIA_HDR">$(MEDIA_CMN_HDR) $(MEDIA_PLATFORM_HDR)</set>

<!-- wxSTC files: -->
<set var="STC_PLATFORM_SRC" hints="files">
<if cond="TOOLKIT=='OSX_COCOA'">$(STC_OSX_COCOA_SRC)</if>
</set>
<set var="STC_PLATFORM_HDR" hints="files">
<if cond="TOOLKIT=='OSX_COCOA'">$(STC_OSX_COCOA_HDR)</if>
</set>
<set var="STC_SRC">$(STC_CMN_SRC) $(STC_PLATFORM_SRC)</set>
<set var="STC_HDR">$(STC_CMN_HDR) $(STC_PLATFORM_HDR)</set>


<set var="GUI_CORE_HEADERS" hints="files">
<if cond="USE_GUI=='1' and WXUNIV=='0'">$(GUI_HDR)</if>
Expand Down
11 changes: 9 additions & 2 deletions build/cmake/files.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -3196,13 +3196,20 @@ set(RICHTEXT_HDR
wx/xrc/xh_richtext.h
)

set(STC_SRC
set(STC_CMN_SRC
src/stc/stc.cpp
src/stc/PlatWX.cpp
src/stc/ScintillaWX.cpp
)

set(STC_HDR
set(STC_CMN_HDR
wx/stc/stc.h
)

set(STC_OSX_COCOA_SRC
src/stc/PlatWXcocoa.mm
)

set(STC_OSX_COCOA_HDR
)

6 changes: 5 additions & 1 deletion build/cmake/lib/stc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@

include(../../source_groups.cmake)

wx_append_sources(STC_FILES STC)
wx_append_sources(STC_FILES STC_CMN)

if(WXOSX_COCOA)
wx_append_sources(STC_FILES STC_OSX_COCOA)
endif()

wx_add_builtin_library(wxscintilla
src/stc/scintilla/lexers/LexA68k.cxx
Expand Down
9 changes: 7 additions & 2 deletions build/files
Original file line number Diff line number Diff line change
Expand Up @@ -3129,10 +3129,15 @@ RICHTEXT_HDR =

# wxSTC

STC_SRC =
STC_CMN_SRC =
src/stc/stc.cpp
src/stc/PlatWX.cpp
src/stc/ScintillaWX.cpp

STC_HDR =
STC_CMN_HDR =
wx/stc/stc.h

STC_OSX_COCOA_SRC =
src/stc/PlatWXcocoa.mm
STC_OSX_COCOA_HDR =

2 changes: 1 addition & 1 deletion build/upmake
Original file line number Diff line number Diff line change
Expand Up @@ -1441,7 +1441,7 @@ if (!$only_bkl) {
qa => [qw(QA)],
ribbon => [qw(RIBBON)],
richtext => [qw(RICHTEXT)],
stc => [qw(STC)],
stc => [qw(STC_CMN)],
webview => [qw(WEBVIEW_CMN WEBVIEW_MSW)],
xml => [qw(XML)],
xrc => [qw(XRC)],
Expand Down
2 changes: 1 addition & 1 deletion build/upmake_script.pl
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ sub call_upmake
qa => [qw(QA)],
ribbon => [qw(RIBBON)],
richtext => [qw(RICHTEXT)],
stc => [qw(STC)],
stc => [qw(STC_CMN)],
webview => [qw(WEBVIEW_CMN WEBVIEW_MSW)],
xml => [qw(XML)],
xrc => [qw(XRC)],
Expand Down

0 comments on commit f2e1aa4

Please sign in to comment.