Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VLC Browser Plugins
Manage
Activity
Members
Labels
Plan
Issues
26
Issue boards
Milestones
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VideoLAN
VLC Browser Plugins
Commits
d2e94ea9
Commit
d2e94ea9
authored
8 years ago
by
Petter Reinholdtsen
Browse files
Options
Downloads
Patches
Plain Diff
Extend gen-vlc-r-in to generate resource file for Windows too.
parent
7122bc4b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
npapi/Makefile.am
+3
-1
3 additions, 1 deletion
npapi/Makefile.am
npapi/gen-vlc-r-in
+82
-8
82 additions, 8 deletions
npapi/gen-vlc-r-in
with
85 additions
and
9 deletions
npapi/Makefile.am
+
3
−
1
View file @
d2e94ea9
...
...
@@ -163,4 +163,6 @@ VLC-Plugin.plugin: $(lib_LTLIBRARIES)
endif
# Mac
package/vlc.r.in
:
vlcshell.cpp
./gen-vlc-r-in
>
package/vlc.r.in
./gen-vlc-r-in macosx
>
package/vlc.r.in
package/npvlc_rc.rc.in
:
vlcshell.cpp
./gen-vlc-r-in win
>
package/npvlc_rc.rc.in
This diff is collapsed.
Click to expand it.
npapi/gen-vlc-r-in
+
82
−
8
View file @
d2e94ea9
...
...
@@ -13,8 +13,8 @@ lines() {
grep
-vi
"quicktime"
}
cat
<<
EOF
macfile
()
{
cat
<<
EOF
/*****************************************************************************
* VLC Plugin description for OS X
*****************************************************************************/
...
...
@@ -43,10 +43,10 @@ resource 'STR#' (127)
{
EOF
lines |
sed
's/ *".*:.*:\(.*\);"/ "\1",/'
|
sed
's%^ */% /%'
lines |
sed
's/ *".*:.*:\(.*\);"/ "\1",/'
|
\
sed
's%^ */% /%'
cat
<<
EOF
cat
<<
EOF
};
};
...
...
@@ -55,10 +55,84 @@ resource 'STR#' (128,"MIME Type")
{
{
EOF
lines |
sed
's/ *"\(.*\):\(.*\):.*;"/ "\1", "\2",/'
|
sed
's%^ */% /%'
cat
<<
EOF
lines |
sed
's/ *"\(.*\):\(.*\):.*;"/ "\1", "\2",/'
|
\
sed
's%^ */% /%'
cat
<<
EOF
};
};
EOF
}
winfile
()
{
mimetype
=
"
$(
lines |
awk
'/ *".*:.*:.*;"/ {print}'
|
sed
's/ *"\(.*\):.*:.*;"/\1|/'
|
tr
-d
"
\n
"
|
sed
's/|$//'
)
"
fileextents
=
"
$(
lines |
awk
'/ *".*:.*:.*;"/ {print}'
|
sed
's/ *".*:\(.*\):.*;"/\1|/'
|
tr
-d
"
\n
"
|
sed
's/|$//'
)
"
fileopenname
=
"
$(
lines |
awk
'/ *".*:.*:.*;"/ {print}'
|
sed
's/ *".*:.*:\(.*\);"/\1|/'
|
tr
-d
"
\n
"
|
sed
's/|$//'
)
"
cat
<<
EOF
/////////////////////////////////////////////////////////////////////////////
//
// VLC Plugin description.
//
#define VERSION_NUMBER @VERSION_MAJOR@,@VERSION_MINOR@,@VERSION_REVISION@,@VERSION_EXTRA_RC@
//VS_VERSION_INFO VERSIONINFO
1 VERSIONINFO
FILEVERSION VERSION_NUMBER
PRODUCTVERSION VERSION_NUMBER
FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
FILEFLAGS 0x1L
#else
FILEFLAGS 0x0L
#endif
FILEOS 0x4L
FILETYPE 0x2L
FILESUBTYPE 0x0L
BEGIN
BLOCK "StringFileInfo"
BEGIN
BLOCK "040904e4"
BEGIN
VALUE "CompanyName", "VideoLAN
\0
"
VALUE "ProductName", "VLC Web Plugin
\0
"
VALUE "ProductVersion", "@VERSION@"
VALUE "InternalName", "npvlc
\0
"
VALUE "OriginalFilename", "npvlc.dll
\0
"
VALUE "FileVersion", "@VERSION@"
VALUE "FileDescription", "VLC media player Web Plugin
\0
"
VALUE "LegalCopyright", "Copyright
\2
51 @COPYRIGHT_YEARS@ VideoLAN and VLC Authors
\0
"
VALUE "LegalTrademarks", "VLC media player, VideoLAN and x264 are registered trademarks from VideoLAN
\0
"
VALUE "MIMEType", "
$mimetype
"
VALUE "FileExtents", "
$fileextents
"
VALUE "FileOpenName", "
$fileopenname
"
END
END
BLOCK "VarFileInfo"
BEGIN
VALUE "Translation", 0x409, 1252
END
END
3 BITMAP DISCARDABLE "../share/pixmaps/win32/defullscreen.bmp"
4 BITMAP DISCARDABLE "../share/pixmaps/win32/play.bmp"
5 BITMAP DISCARDABLE "../share/pixmaps/win32/pause.bmp"
6 BITMAP DISCARDABLE "../share/pixmaps/win32/volume.bmp"
7 BITMAP DISCARDABLE "../share/pixmaps/win32/volume-muted.bmp"
8 ICON DISCARDABLE "../share/pixmaps/win32/vlc.ico"
9 BITMAP DISCARDABLE "../share/pixmaps/win32/fullscreen.bmp"
EOF
}
case
"
$1
"
in
win
)
winfile
;;
macosx
)
macfile
;;
*
)
echo
"Incorrect usage."
1>&2
exit
1
;;
esac
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment