Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
93d4ac2a
Commit
93d4ac2a
authored
May 30, 2017
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineandroid: Add initial stub for the Java activity.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
e11f2397
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
143 additions
and
3 deletions
+143
-3
Makefile.in
Makefile.in
+1
-1
configure
configure
+1
-1
configure.ac
configure.ac
+1
-1
AndroidManifest.xml
dlls/wineandroid.drv/AndroidManifest.xml
+16
-0
Makefile.in
dlls/wineandroid.drv/Makefile.in
+10
-0
WineActivity.java
dlls/wineandroid.drv/WineActivity.java
+33
-0
build.gradle.in
dlls/wineandroid.drv/build.gradle.in
+81
-0
wine.svg
dlls/wineandroid.drv/wine.svg
+0
-0
No files found.
Makefile.in
View file @
93d4ac2a
...
...
@@ -76,7 +76,7 @@ MAKEDEP = $(TOOLSDIR)/tools/makedep$(TOOLSEXT)
WINEBUILD
=
$(TOOLSDIR)
/tools/winebuild/winebuild
$(TOOLSEXT)
WRC
=
$(TOOLSDIR)
/tools/wrc/wrc
$(TOOLSEXT)
PACKAGE_VERSION
=
@PACKAGE_VERSION@
SED_CMD
=
LC_ALL
=
C
sed
-e
's,@bindir\@,
$(bindir)
,g'
-e
's,@dlldir\@,
$(dlldir)
,g'
-e
's,@PACKAGE_STRING\@,@PACKAGE_STRING@,g'
-e
's,@PACKAGE_VERSION\@,@PACKAGE_VERSION@,g'
SED_CMD
=
LC_ALL
=
C
sed
-e
's,@bindir\@,
$(bindir)
,g'
-e
's,@dlldir\@,
$(dlldir)
,g'
-e
's,@
srcdir\@,
$(srcdir)
,g'
-e
's,@
PACKAGE_STRING\@,@PACKAGE_STRING@,g'
-e
's,@PACKAGE_VERSION\@,@PACKAGE_VERSION@,g'
LDRPATH_INSTALL
=
@LDRPATH_INSTALL@
LDRPATH_LOCAL
=
@LDRPATH_LOCAL@
INSTALL_PROGRAM
=
STRIPPROG
=
"
$(STRIP)
"
$(top_srcdir)
/tools/install-sh
$(INSTALL_PROGRAM_FLAGS)
...
...
configure
View file @
93d4ac2a
...
...
@@ -18575,7 +18575,7 @@ wine_fn_config_test dlls/windowscodecs/tests windowscodecs_test
wine_fn_config_dll windowscodecsext enable_windowscodecsext implib
wine_fn_config_test dlls/windowscodecsext/tests windowscodecsext_test
wine_fn_config_dll winealsa.drv enable_winealsa_drv
wine_fn_config_dll wineandroid.drv enable_wineandroid_drv
wine_fn_config_dll wineandroid.drv enable_wineandroid_drv
clean
wine_fn_config_dll winebus.sys enable_winebus_sys
wine_fn_config_dll winecoreaudio.drv enable_winecoreaudio_drv
wine_fn_config_lib winecrt0
...
...
configure.ac
View file @
93d4ac2a
...
...
@@ -3519,7 +3519,7 @@ WINE_CONFIG_TEST(dlls/windowscodecs/tests)
WINE_CONFIG_DLL(windowscodecsext,,[implib])
WINE_CONFIG_TEST(dlls/windowscodecsext/tests)
WINE_CONFIG_DLL(winealsa.drv)
WINE_CONFIG_DLL(wineandroid.drv)
WINE_CONFIG_DLL(wineandroid.drv
,,[clean]
)
WINE_CONFIG_DLL(winebus.sys)
WINE_CONFIG_DLL(winecoreaudio.drv)
WINE_CONFIG_LIB(winecrt0)
...
...
dlls/wineandroid.drv/AndroidManifest.xml
0 → 100644
View file @
93d4ac2a
<?xml version="1.0" encoding="utf-8"?>
<manifest
xmlns:android=
"http://schemas.android.com/apk/res/android"
package=
"org.winehq.wine"
>
<application
android:icon=
"@drawable/wine"
android:label=
"Wine"
>
<activity
android:label=
"Wine"
android:name=
".WineActivity"
>
<intent-filter
>
<action
android:name=
"android.intent.action.MAIN"
/>
<category
android:name=
"android.intent.category.LAUNCHER"
/>
</intent-filter>
</activity>
</application>
</manifest>
dlls/wineandroid.drv/Makefile.in
View file @
93d4ac2a
MODULE
=
wineandroid.drv
IN_SRCS
=
\
build.gradle.in
EXTRA_TARGETS
=
wine-debug.apk
all
:
wine-debug.apk
wine-debug.apk
:
build.gradle $(srcdir)/AndroidManifest.xml $(srcdir)/WineActivity.java $(srcdir)/wine.svg
gradle
-q
assembleDebug
&&
mv
build/outputs/apk/wine-debug.apk .
dlls/wineandroid.drv/WineActivity.java
0 → 100644
View file @
93d4ac2a
/*
* WineActivity class
*
* Copyright 2013-2017 Alexandre Julliard
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
package
org
.
winehq
.
wine
;
import
android.app.Activity
;
import
android.os.Bundle
;
public
class
WineActivity
extends
Activity
{
@Override
public
void
onCreate
(
Bundle
savedInstanceState
)
{
super
.
onCreate
(
savedInstanceState
);
}
}
dlls/wineandroid.drv/build.gradle.in
0 → 100644
View file @
93d4ac2a
/*
* Gradle build script for Wine
*
* Copyright 2017 Alexandre Julliard
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
apply plugin: 'com.android.application'
buildscript
{
repositories
{
jcenter()
}
dependencies
{
classpath "com.android.tools.build:gradle:2.2.1"
}
}
def add_icon_task( dir, scale ) {
return tasks.create( "createIcon-" + dir, Exec ) {
def outdir = new File( "res", "drawable-" + dir )
outputs.dir( outdir )
doFirst { outdir.mkdirs() }
def png = new File( outdir, "wine.png" )
def svg = new File( "@srcdir@", "wine.svg" )
inputs.file( svg )
outputs.file( png )
commandLine "rsvg-convert", "-z", scale, "-o", png, svg
}
}
tasks.whenTaskAdded { t ->
if (t.name.equals( "generateDebugResources" )) {
t.dependsOn add_icon_task( "ldpi", 0.75 )
t.dependsOn add_icon_task( "mdpi", 1 )
t.dependsOn add_icon_task( "hdpi", 1.5 )
t.dependsOn add_icon_task( "xhdpi", 2 )
t.dependsOn add_icon_task( "xxhdpi", 3 )
t.dependsOn add_icon_task( "xxxhdpi", 4 )
}
}
android
{
compileSdkVersion 17
buildToolsVersion "25.0.3"
defaultConfig
{
applicationId "org.winehq.wine"
minSdkVersion 17
versionCode 1
versionName "@PACKAGE_VERSION@"
setProperty( "archivesBaseName", "wine" )
}
sourceSets
{
main.assets.srcDirs = [ "assets" ]
main.java.srcDirs = [ "@srcdir@" ]
main.java.excludes = [ "build" ]
main.res.srcDirs = [ "res" ]
main.manifest.srcFile "@srcdir@/AndroidManifest.xml"
}
}
dlls/wineandroid.drv/wine.svg
0 → 100644
View file @
93d4ac2a
This diff is collapsed.
Click to expand it.
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