Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
386df22d
Commit
386df22d
authored
Jun 25, 2011
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
contrib: target for CMake toolchain configuration
parent
e4e00a4e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
+21
-0
contrib/src/main.mak
contrib/src/main.mak
+21
-0
No files found.
contrib/src/main.mak
View file @
386df22d
...
...
@@ -176,6 +176,7 @@ install: $(PKGS:%=.%)
mostlyclean
:
-
$(RM)
$(ALL_PKGS:%=.%)
$
(
ALL_PKGS:%
=
.sum-%
)
-
$(RM)
toolchain.cmake
-
$(RM)
-R
"
$(PREFIX)
"
-
find
-maxdepth
1
-type
d
'!'
-name
.
-exec
$(RM)
-R
'{}'
';'
...
...
@@ -190,4 +191,24 @@ package: install
(
cd
$(PREFIX)
/..
&&
\
tar
cvJ
$(
notdir
$(PREFIX)
)
/
)
>
../vlc-contrib-
$(HOST)
-
$(DATE)
.tar.xz
# CMake toolchain
toolchain.cmake
:
$(RM)
$@
ifdef
HAVE_WIN32
echo
"set(CMAKE_SYSTEM_NAME Windows)"
>>
$@
echo
"set(CMAKE_RC_COMPILER
$(HOST)
-windres)"
>>
$@
endif
ifdef
HAVE_MACOSX
echo
"set(CMAKE_SYSTEM_NAME Darwin)"
>>
$@
echo
"set(CMAKE_C_FLAGS
$(CFLAGS)
)"
>>
$@
echo
"set(CMAKE_CXX_FLAGS
$(CFLAGS)
"
>>
$@
echo
"set(CMAKE_LD_FLAGS
$(LDFLAGS)
)"
>>
$@
endif
echo
"set(CMAKE_C_COMPILER
$(CC)
)"
>>
$@
echo
"set(CMAKE_CXX_COMPILER
$(CXX)
)"
>>
$@
echo
"set(CMAKE_FIND_ROOT_PATH
$(PREFIX)
)"
>>
$@
echo
"set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)"
>>
$@
echo
"set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)"
>>
$@
echo
"set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)"
>>
$@
.DELETE_ON_ERROR
:
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment