forked from blastrock/pkgj
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e94ca04
commit 4adae6c
Showing
6 changed files
with
84 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
sources: | ||
"0.0.2": | ||
url: "https://github.com/xerpi/libvita2d/archive/master.tar.gz" | ||
patches: | ||
"0.0.2": | ||
- patch_file: "patches/0001-fix-tex-size.patch" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#!/usr/bin/env python | ||
# -*- coding: utf-8 -*- | ||
import os | ||
|
||
from conan import ConanFile | ||
from conan.tools import files | ||
|
||
|
||
class Vita2dConan(ConanFile): | ||
name = "libvita2d" | ||
version = "0.0.2" | ||
settings = "os", "compiler", "build_type", "arch" | ||
exports_sources = "temp-support.patch" | ||
user = "blastrock" | ||
channel = "pkgj" | ||
|
||
def export_sources(self): | ||
files.export_conandata_patches(self) | ||
|
||
def source(self): | ||
files.get(self, **self.conan_data["sources"][self.version], strip_root=True) | ||
|
||
def build(self): | ||
files.apply_conandata_patches(self) | ||
self.run("make -C libvita2d") | ||
|
||
def package(self): | ||
self.run("make -C libvita2d install") | ||
|
||
def package_info(self): | ||
self.cpp_info.libs = ["libvita2d"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
diff --git a/libvita2d/source/vita2d_font.c b/libvita2d/source/vita2d_font.c | ||
index d1d9287..72e1ec7 100755 | ||
--- a/libvita2d/source/vita2d_font.c | ||
+++ b/libvita2d/source/vita2d_font.c | ||
@@ -11,8 +11,8 @@ | ||
#include "utils.h" | ||
#include "shared.h" | ||
|
||
-#define ATLAS_DEFAULT_W 512 | ||
-#define ATLAS_DEFAULT_H 512 | ||
+#define ATLAS_DEFAULT_W 4096 | ||
+#define ATLAS_DEFAULT_H 4096 | ||
|
||
typedef enum { | ||
VITA2D_LOAD_FONT_FROM_FILE, | ||
diff --git a/libvita2d/source/vita2d_pgf.c b/libvita2d/source/vita2d_pgf.c | ||
index 6fc461c..7f9b4f0 100755 | ||
--- a/libvita2d/source/vita2d_pgf.c | ||
+++ b/libvita2d/source/vita2d_pgf.c | ||
@@ -13,8 +13,8 @@ | ||
#include "utils.h" | ||
#include "shared.h" | ||
|
||
-#define ATLAS_DEFAULT_W 512 | ||
-#define ATLAS_DEFAULT_H 512 | ||
+#define ATLAS_DEFAULT_W 4096 | ||
+#define ATLAS_DEFAULT_H 4096 | ||
|
||
typedef struct vita2d_pgf_font_handle { | ||
SceFontHandle font_handle; | ||
diff --git a/libvita2d/source/vita2d_pvf.c b/libvita2d/source/vita2d_pvf.c | ||
index ce58283..affd080 100755 | ||
--- a/libvita2d/source/vita2d_pvf.c | ||
+++ b/libvita2d/source/vita2d_pvf.c | ||
@@ -13,8 +13,8 @@ | ||
#include "utils.h" | ||
#include "shared.h" | ||
|
||
-#define ATLAS_DEFAULT_W 512 | ||
-#define ATLAS_DEFAULT_H 512 | ||
+#define ATLAS_DEFAULT_W 4096 | ||
+#define ATLAS_DEFAULT_H 4096 | ||
|
||
#define PVF_GLYPH_MARGIN 2 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters