Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
clambers committed Apr 16, 2015
0 parents commit cef3df6
Show file tree
Hide file tree
Showing 6 changed files with 73 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Makefile.am
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
AM_MAKEFLAGS = --no-print-directory
SUBDIRS = src
9 changes: 9 additions & 0 deletions autogen.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#/bin/sh

AUTORECONF=`which autoreconf`

if [ -z $AUTORECONF ]; then
echo "*** autoreconf not found, please install autoconf ***"
fi

$AUTORECONF -fvi
16 changes: 16 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
AC_PREREQ([2.69])

AC_INIT([Chroma], [1.0], [https://github.com/PDXostc/chroma/issues], [], [https://github.com/PDXostc/chroma])
AC_CONFIG_SRCDIR([src/index.html])
AC_CONFIG_AUX_DIR([build-aux])

AM_INIT_AUTOMAKE([1.14 foreign -Wall -Werror -Wno-portability])
AM_SILENT_RULES([yes])

AC_CHECK_TOOL([ZIP], [zip])
AC_CHECK_TOOL([XML_LINT], [xmllint])
AC_CHECK_TOOL([SSH], [ssh])

AC_CONFIG_FILES([Makefile src/Makefile src/chroma.xml])

AC_OUTPUT
24 changes: 24 additions & 0 deletions src/Makefile.am
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
ZFLAGS = -ur
XLFLAGS = --dropdtd --noent

SOURCES = $(srcdir)/index.html
CONFIG = chroma.xml
TARGET = $(PACKAGE_NAME).wgt

BUILT_SOURCES = $(srcdir)/config.xml
EXTRA_DIST = $(BUILT_SOURCES) $(SOURCES)

CLEANFILES = $(TARGET)
MAINTAINERCLEANFILES = $(BUILT_SOURCES)

ZFLAGS_V = $(ZFLAGS_V_@AM_V@)
ZFLAGS_V_ = $(ZFLAGS) -q
ZFLAGS_V_0 = $(ZFLAGS)

all: $(BUILT_SOURCES) $(TARGET)

$(TARGET): $(SOURCES)
$(AM_V_GEN) $(ZIP) $(ZFLAGS_V) $@ $(BUILT_SOURCES) $(SOURCES)

config.xml: $(top_srcdir)/configure.ac $(CONFIG).in
$(AM_V_GEN) $(XML_LINT) $(XLFLAGS) $(CONFIG) > $@
11 changes: 11 additions & 0 deletions src/chroma.xml.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE widget [
<!ENTITY name "@PACKAGE_NAME@">
<!ENTITY version "@PACKAGE_VERSION@">
]>
<widget xmlns="http://www.w3.org/ns/widgets" xmlns:tizen="http://tizen.org/ns/widgets" id="com.jlr.Fingerprint" version="&version;" viewmodes="fullscreen">
<content src="index.html" />
<name>&name;</name>
<tizen:application id="abcdefghijk" package="&name;" required_version="2.1" />
<tizen:setting screen-orientation="portrait" context-menu="enable" background-support="disable" encryption="disable" install-location="auto" />
</widget>
11 changes: 11 additions & 0 deletions src/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
</head>
<body>
<h1>Test</h1>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
</body>
</html>

0 comments on commit cef3df6

Please sign in to comment.