Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
U
uniset2
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
UniSet project repositories
uniset2
Commits
53c620d2
Commit
53c620d2
authored
Jul 22, 2009
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add script: exports flags and libs from pc file for build with library for source tree
parent
69e91c71
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
0 deletions
+29
-0
libUniSet.include
libUniSet.include
+29
-0
No files found.
libUniSet.include
0 → 100644
View file @
53c620d2
#!/bin/sh
# Copyright (c) 2009 Free Software Foundation, Inc.
# Copyright (c) 2009 Vitaly Lipatov <lav@etersoft.ru>
# exports flags and libs from pc file for build with library for source tree
# EXPORTPATH contains path to the project dir (../uniset f.i.)
# Usage example:
# TryExport()
# {
# EXPORTPATH=$(readlink -f $1)
# test -r $1/$2 && . $1/$2
# }
#
# TryExport ../uniset libUniSet.include
PCFILE
=
$EXPORTPATH
/libUniSet.pc
test
-r
"
$PCFILE
"
||
exit
1
# guess prefix in the first line of pkgconfig file
eval
$(
head
-n1
$PCFILE
)
test
-d
"
$prefix
"
||
exit
1
export
UNISET_CFLAGS
=
"
$(
pkg-config
--cflags
$PCFILE
|
sed
-e
"s|-I
$prefix
/include/uniset|-I
$EXPORTPATH
/include|g"
)
"
export
UNISET_LIBS
=
"-L
$EXPORTPATH
/lib
$(
pkg-config
--libs
$PCFILE
|
sed
-e
"s|-L
$prefix
||g"
)
"
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