Commit 17897b88 authored by Brendan Long's avatar Brendan Long

Initial commit.

parents
Copyright (c) 2014, CableLabs, Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
## Dependencies
On Ubuntu 14.04:
sudo apt-get install valac libgupnp-dev libgee-dev libjson-glib-dev
# tup build tool
# see: http://gittup.org/tup/
sudo apt-add-repository 'deb http://ppa.launchpad.net/anatol/tup/ubuntu precise main'
sudo apt-get update
sudo apt-get install tup
## Build
tup upd
While developing, it can be useful to leave `tup` running in the background, autocompiling every time anything changes:
tup monitor -a
# stop with 'tup stop'
## Run
./server
The server output will say something like:
> Starting HTTP server on http://localhost:37229
Visit that page in your browser to see the discovered remote UIs.
You can pick the port with the `-p` option:
./server -p 8080
> Starting UPnP server on 10.43.0.93:40418
>
> Starting HTTP server on http://localhost:8080
include_rules
: src/*.o |> gcc %f $(LD_FLAGS) -o %o |> server
export PKG_CONFIG_PATH
LD_FLAGS += \$(pkg-config --libs gupnp-1.0 gssdp-1.0 gobject-2.0 libxml-2.0 libsoup-2.4 gee-1.0 json-glib-1.0) -g
VALA_FLAGS += --pkg=gupnp-1.0 --pkg=gee-1.0 --pkg=json-glib-1.0 --pkg=gio-2.0 -X -w -g
.gitignore
!vala = |> valac -c %f $(VALA_FLAGS) |>
include_rules
: foreach *.vala |> !vala |> | %f.o
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment