Tomek Kurcz | e93a901 | 2017-09-19 09:16:43 +0200 | [diff] [blame^] | 1 | (in-package #:cl-user) |
| 2 | |
| 3 | ;;;; Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | ;;;; you may not use this file except in compliance with the License. |
| 5 | ;;;; You may obtain a copy of the License at |
| 6 | ;;;; |
| 7 | ;;;; http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | ;;;; |
| 9 | ;;;; Unless required by applicable law or agreed to in writing, software |
| 10 | ;;;; distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | ;;;; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | ;;;; See the License for the specific language governing permissions and |
| 13 | ;;;; limitations under the License. |
| 14 | |
| 15 | (require "asdf") |
| 16 | (load (merge-pathnames "../../lib/cl/load-locally.lisp" *load-truename*)) |
| 17 | (asdf:load-system :net.didierverna.clon) |
| 18 | (asdf:load-asd (merge-pathnames "gen-cl/shared/thrift-gen-shared.asd" *load-truename*)) |
| 19 | (asdf:load-asd (merge-pathnames "gen-cl/tutorial/thrift-gen-tutorial.asd" *load-truename*)) |
| 20 | (asdf:load-asd (merge-pathnames "thrift-tutorial.asd" *load-truename*)) |
| 21 | (asdf:load-system :thrift-tutorial) |
| 22 | |
| 23 | (net.didierverna.clon:nickname-package) |
| 24 | |
| 25 | (defun main () |
| 26 | "Entry point for the binary." |
| 27 | (thrift:serve #u"thrift://127.0.0.1:9090" tutorial:calculator)) |
| 28 | |
| 29 | (clon:dump "TutorialServer" main) |