OASISFormat: 0.3
OCamlVersion: >= 3.12.0
Name: gapi-ocaml
Version: 0.2.6
LicenseFile: LICENSE
License: MIT
BuildType: ocamlbuild (0.3)
Authors: Alessandro Strada
Maintainers: Alessandro Strada <alessandro.strada@gmail.com>
Copyrights: (C) 2011-2012 Alessandro Strada
Homepage: http://gapi-ocaml.forge.ocamlcore.org
Plugins: META (0.3)
BuildTools: ocamlbuild

Synopsis: A simple OCaml client for Google Services.

Description: gapi-ocaml is a simple, unofficial, OCaml client for
  Google Services. The library supports ClientLogin, OAuth 1.0a, and
  OAuth 2.0 authentication.  Supported RESTful APIs: Calendar APIs v3,
  Google+ API v1, Tasks API v1, APIs Discovery Service v1, URL Shortener
  API v1, OAuth2 API v2, Custom Search API v1, Google Analytics API v3,
  Page Speed Online API v1, Blogger API v2, Site Verification API v1,
  AdSense Management API v1.1, BigQuery API v2, Drive API v2, Gmail API v1.
  Google Data Protocol APIs (GData): Google Documents List API v3.

# Flags
Flag all
  Description: Build all
  Default: false

# Flags
Flag generator
  Description: Build service generator
  Default$: flag(all)

# Flags
Flag examples
  Description: Build examples
  Default$: flag(all)

# Libraries
Library "gapi-ocaml"
  Path: src/gapi
  Modules:
    GapiUtils,
    GapiCore,
    GapiCurl,
    GapiPipe,
    GapiConfig,
    GapiConversation,
    GapiAuthResponse,
    GapiClientLogin,
    GapiOAuth1,
    GapiOAuth2,
    GapiAuth,
    GapiRequest,
    GapiMonad,
    GapiError,
    GapiService,
    GapiDate,
    GapiJson,
    GapiLens,
    GapiMediaResource,
    GapiCalendarV3Model,
    GapiCalendarV3Service,
    GapiPlusV1Model,
    GapiPlusV1Service,
    GapiTasksV1Model,
    GapiTasksV1Service,
    GapiDiscoveryV1Model,
    GapiDiscoveryV1Service,
    GapiUrlshortenerV1Model,
    GapiUrlshortenerV1Service,
    GapiOauth2V2Model,
    GapiOauth2V2Service,
    GapiCustomsearchV1Model,
    GapiCustomsearchV1Service,
    GapiAnalyticsV3Model,
    GapiAnalyticsV3Service,
    GapiPagespeedonlineV1Model,
    GapiPagespeedonlineV1Service,
    GapiBloggerV2Model,
    GapiBloggerV2Service,
    GapiSiteVerificationV1Model,
    GapiSiteVerificationV1Service,
    GapiAdsenseV1_1Model,
    GapiAdsenseV1_1Service,
    GapiBigqueryV2Model,
    GapiBigqueryV2Service,
    GapiDriveV2Model,
    GapiDriveV2Service,
    GapiGmailV1Model,
    GapiGmailV1Service
  BuildDepends: extlib, netstring, curl, str, cryptokit, yojson
  XMETADescription: Google APIs client library

Library gdata
  Path: src/gdata
  Modules:
    GdataUtils,
    GdataCore,
    GdataBatch,
    GdataAtom,
    GdataExtensions,
    GdataComments,
    GdataService,
    GdataACL,
    GdataACLService,
    GdataDocumentsV3Model,
    GdataDocumentsV3Service
  BuildDepends: gapi-ocaml, xmlm
  FindlibParent: gapi-ocaml
  XMETADescription: Google Data Protocol (GData) client library

# Documentation
Document "gapi-ocaml"
  Title: API reference for Google APIs client library
  Type: ocamlbuild (0.3)
  InstallDir: $htmldir/html
  Install: false
  DataFiles: doc/style.css
  BuildTools+: ocamldoc
  XOCamlbuildPath: src/
  XOCamlbuildLibraries: gapi-ocaml, gapi-ocaml.gdata

# Executables
Executable "serviceGenerator"
  Build$: flag(generator) || flag(all)
  Path: tools
  Install: false
  MainIs: serviceGenerator.ml
  BuildDepends: gapi-ocaml, monad-custom

# Examples
Executable "oauth2Flow"
  Build$: flag(examples) || flag(all)
  Path: examples/auth
  Install: false
  MainIs: oauth2Flow.ml
  BuildDepends: gapi-ocaml.gdata, nethttpd

Executable "oauth1Flow"
  Build$: flag(examples) || flag(all)
  Path: examples/auth
  Install: false
  MainIs: oauth1Flow.ml
  BuildDepends: gapi-ocaml, nethttpd

Executable "clientLoginFlow"
  Build$: flag(examples) || flag(all)
  Path: examples/auth
  Install: false
  MainIs: clientLoginFlow.ml
  BuildDepends: gapi-ocaml, nethttpd

# Tests
Executable "refreshOAuth2Token"
  Build$: flag(tests) || flag(all)
  Path: src/test
  Install: false
  MainIs: refreshOAuth2Token.ml
  BuildDepends: gapi-ocaml, oUnit

Executable "test_suite"
  Build$: flag(tests) || flag(all)
  Path: src/test
  Install: false
  MainIs: testSuite.ml
  BuildDepends: oUnit, gapi-ocaml.gdata, monad-custom

Test core
  Run$: flag(tests) || flag(all)
  Command: $test_suite
  TestTools: test_suite

# VCS
SourceRepository head
  Type: git
  Location: https://github.com/astrada/gapi-ocaml.git
  Browser: https://github.com/astrada/gapi-ocaml
  Branch: master

