From f625441429bfe1e10b1532873d78ce41084e178c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=EA=A6=AB=EA=A6=B6=EA=A6=8F=EA=A7=80=EA=A6=A6?= =?UTF-8?q?=EA=A6=BF=EA=A6=A7=EA=A6=AE=EA=A6=91=EA=A6=A9=EA=A6=AD=EA=A7=80?= Date: Sun, 18 Sep 2022 21:36:16 +0800 Subject: Preparing to use Emscripten --- .gitignore | 11 +++++++++++ Makefile.am | 3 +++ configure.ac | 5 +++++ pages/index.c | 6 ++++++ 4 files changed, 25 insertions(+) create mode 100644 Makefile.am create mode 100644 configure.ac create mode 100644 pages/index.c diff --git a/.gitignore b/.gitignore index b72f9be..58affe2 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,13 @@ *~ *.swp +Makefile.in +aclocal.m4 +autom4te.cache +autoscan*.log +build +compile +configure +configure.scan +depcomp +install-sh +missing diff --git a/Makefile.am b/Makefile.am new file mode 100644 index 0000000..006bcc6 --- /dev/null +++ b/Makefile.am @@ -0,0 +1,3 @@ +bin_PROGRAMS = index.js +index_js_SOURCES = pages/index.c +index_js_LDFLAGS = -s FETCH diff --git a/configure.ac b/configure.ac new file mode 100644 index 0000000..8cf2213 --- /dev/null +++ b/configure.ac @@ -0,0 +1,5 @@ +AC_INIT([shopify-frontend-template-html], [0.0], [prabowo@darapsa.org]) +AM_INIT_AUTOMAKE([-Wall -Werror foreign subdir-objects]) +AC_PROG_CC +AC_CONFIG_FILES([Makefile]) +AC_OUTPUT diff --git a/pages/index.c b/pages/index.c new file mode 100644 index 0000000..08aa2d6 --- /dev/null +++ b/pages/index.c @@ -0,0 +1,6 @@ +#include + +int main(int argc, char *argv[]) +{ + EM_ASM(authenticatedFetch("/products")); +} -- cgit v1.2.3