Skip to content

Commit

Permalink
Build couch beams from source
Browse files Browse the repository at this point in the history
  • Loading branch information
apage43 committed Jul 18, 2011
1 parent 2d63075 commit 793c986
Show file tree
Hide file tree
Showing 120 changed files with 25 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Expand Up @@ -16,3 +16,6 @@
[submodule "Demo/Vendor/TouchJSON"]
path = Demo/Vendor/TouchJSON
url = https://github.com/TouchCode/TouchJSON.git
[submodule "MobileCouchbase/Vendor/couchdb"]
path = MobileCouchbase/Vendor/couchdb
url = https://github.com/couchbaselabs/couchdb.git
2 changes: 1 addition & 1 deletion MobileCouchbase/Classes/CouchbaseEmbeddedServer.m
Expand Up @@ -176,7 +176,7 @@ - (BOOL)start
free(params); // balances malloc call that created the pointer

char* erlang_args[10] = {"beam", "--", "-noinput",
"-eval", "application:start(couch).",
"-eval", "R = application:start(couch), io:format(\"~w~n\",[R]).",
"-root", erl_root, "-couch_ini",
inipath, inipath2};
erl_start(10, erlang_args); // This never returns (unless Erlang exits)
Expand Down
15 changes: 15 additions & 0 deletions MobileCouchbase/Couchbase.xcodeproj/project.pbxproj
Expand Up @@ -186,6 +186,7 @@
isa = PBXNativeTarget;
buildConfigurationList = 273A732F13BD44670078870D /* Build configuration list for PBXNativeTarget "Couchbase.framework" */;
buildPhases = (
D9B664DE13D48BE1008CD673 /* ShellScript */,
273A731A13BD44670078870D /* Sources */,
273A733113BD44CF0078870D /* Headers */,
273A733513BD471A0078870D /* CopyFiles */,
Expand Down Expand Up @@ -262,6 +263,20 @@
shellScript = "cp \"${CONFIGURATION_BUILD_DIR}/libCouchbase.a\" \"${CONFIGURATION_BUILD_DIR}/${EXECUTABLE_PATH}\"";
showEnvVarsInLog = 0;
};
D9B664DE13D48BE1008CD673 /* ShellScript */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
);
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "./build_app.sh couchdb \"couch.erl couch_app.erl couch_app_server.erl couch_app_server_emonk.erl couch_app_server_erlang.erl couch_auth_cache.erl couch_btree.erl couch_changes.erl couch_config.erl couch_config_writer.erl couch_db.erl couch_db_update_notifier.erl couch_db_update_notifier_sup.erl couch_db_updater.erl couch_doc.erl couch_event_sup.erl couch_external_manager.erl couch_external_server.erl couch_file.erl couch_httpd.erl couch_httpd_auth.erl couch_httpd_db.erl couch_httpd_external.erl couch_httpd_misc_handlers.erl couch_httpd_oauth.erl couch_httpd_proxy.erl couch_httpd_rewrite.erl couch_httpd_show.erl couch_httpd_stats_handlers.erl couch_httpd_vhost.erl couch_httpd_view.erl couch_key_tree.erl couch_log.erl couch_native_process.erl couch_os_daemons.erl couch_os_process.erl couch_query_servers.erl couch_ref_counter.erl couch_rep.erl couch_rep_att.erl couch_rep_changes_feed.erl couch_rep_httpc.erl couch_rep_missing_revs.erl couch_rep_reader.erl couch_rep_sup.erl couch_rep_writer.erl couch_replication_manager.erl couch_server.erl couch_server_sup.erl couch_stats_aggregator.erl couch_stats_collector.erl couch_stream.erl couch_task_status.erl couch_util.erl couch_uuids.erl couch_view.erl couch_view_compactor.erl couch_view_group.erl couch_view_server.erl couch_view_server_emonk.erl couch_view_server_erlang.erl couch_view_server_os.erl couch_view_updater.erl couch_work_queue.erl\" ../../../../erlang/lib/couch/ebin\n./build_app.sh erlang-oauth \"oauth.erl oauth_hmac_sha1.erl oauth_http.erl oauth_plaintext.erl oauth_rsa_sha1.erl oauth_unix.erl oauth_uri.erl\" ../../../../erlang/lib/erlang-oauth/ebin\n./build_app.sh ibrowse \"ibrowse.erl ibrowse_app.erl ibrowse_http_client.erl ibrowse_lb.erl ibrowse_lib.erl ibrowse_sup.erl ibrowse_test.erl\" ../../../../erlang/lib/ibrowse\n./build_app.sh mochiweb \"mochifmt.erl mochifmt_records.erl mochifmt_std.erl mochiglobal.erl mochihex.erl mochijson.erl mochijson2.erl mochilists.erl mochilogfile2.erl mochinum.erl mochitemp.erl mochiutf8.erl mochiweb.erl mochiweb_acceptor.erl mochiweb_app.erl mochiweb_charref.erl mochiweb_cookies.erl mochiweb_cover.erl mochiweb_echo.erl mochiweb_headers.erl mochiweb_html.erl mochiweb_http.erl mochiweb_io.erl mochiweb_mime.erl mochiweb_multipart.erl mochiweb_request.erl mochiweb_response.erl mochiweb_skel.erl mochiweb_socket.erl mochiweb_socket_server.erl mochiweb_sup.erl mochiweb_util.erl reloader.erl\" ../../../../erlang/lib/mochiweb/ebin\nerlc -o erlang/lib/emonk/ebin Vendor/couchdb/src/emonk/src/emonk.erl";
showEnvVarsInLog = 0;
};
/* End PBXShellScriptBuildPhase section */

/* Begin PBXSourcesBuildPhase section */
Expand Down
1 change: 1 addition & 0 deletions MobileCouchbase/Vendor/couchdb
Submodule couchdb added at 11fdd2
4 changes: 4 additions & 0 deletions MobileCouchbase/build_app.sh
@@ -0,0 +1,4 @@
#!/bin/sh
cd Vendor/CouchDB/src/$1
cat Makefile.am
erlc -W0 -o $3 $2
2 changes: 1 addition & 1 deletion MobileCouchbase/default.ini
Expand Up @@ -101,7 +101,7 @@ httpd={couch_httpd, start_link, []}
; stats_collector={couch_stats_collector, start, []}
uuids={couch_uuids, start, []}
auth_cache={couch_auth_cache, start_link, []}
rep_db_changes_listener={couch_rep_db_listener, start_link, []}
; rep_db_changes_listener={couch_rep_db_listener, start_link, []}
vhosts={couch_httpd_vhost, start_link, []}

[httpd_global_handlers]
Expand Down
Binary file removed MobileCouchbase/erlang/lib/couch-0.12/ebin/couch.beam
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed MobileCouchbase/erlang/lib/emonk/ebin/emonk.beam
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed MobileCouchbase/erlang/lib/ibrowse/ibrowse.beam
Binary file not shown.
Binary file removed MobileCouchbase/erlang/lib/ibrowse/ibrowse_app.beam
Binary file not shown.
Binary file not shown.
Binary file removed MobileCouchbase/erlang/lib/ibrowse/ibrowse_lb.beam
Binary file not shown.
Binary file removed MobileCouchbase/erlang/lib/ibrowse/ibrowse_lib.beam
Binary file not shown.
Binary file removed MobileCouchbase/erlang/lib/ibrowse/ibrowse_sup.beam
Binary file not shown.
Binary file removed MobileCouchbase/erlang/lib/ibrowse/ibrowse_test.beam
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit 793c986

Please sign in to comment.